P10290 [CCC 2024 J1] Conveyor Belt Sushi

Description

A new conveyor belt sushi restaurant has opened in town. Plates of sushi travel around on a raised conveyor belt, and customers can choose what to eat by taking plates. Each red plate of sushi costs $3$ dollars, each green plate costs $4$ dollars, and each blue plate costs $5$ dollars. ![](https://cdn.luogu.com.cn/upload/image_hosting/yy1kg2a9.png) Your task is to determine the cost of a meal based on how many plates of each color the customer takes.

Input Format

The first line of input contains a non-negative integer $R$, the number of red plates the customer takes. The second line contains a non-negative integer $G$, the number of green plates the customer takes. The third line contains a non-negative integer $B$, the number of blue plates the customer takes.

Output Format

Output a non-negative integer $C$, the number of dollars the meal costs.

Explanation/Hint

**[Sample 1 Explanation]** The customer takes $0$ red plates, $2$ green plates, and $4$ blue plates. So the cost of the meal is $0 \times 3 + 2 \times 4 + 4 \times 5 = 28$ dollars. **[Constraints]** For all testdata, it is guaranteed that $0 \leq R, G, B \leq 500$. Translated by ChatGPT 5