#P10290. [CCC 2024 J1] Conveyor Belt Sushi

[CCC 2024 J1] Conveyor Belt Sushi

Problem 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 33 dollars, each green plate costs 44 dollars, and each blue plate costs 55 dollars.

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 RR, the number of red plates the customer takes.
The second line contains a non-negative integer GG, the number of green plates the customer takes.
The third line contains a non-negative integer BB, the number of blue plates the customer takes.

Output Format

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

0
2
4

28

Hint

[Sample 1 Explanation]

The customer takes 00 red plates, 22 green plates, and 44 blue plates. So the cost of the meal is 0×3+2×4+4×5=280 \times 3 + 2 \times 4 + 4 \times 5 = 28 dollars.

[Constraints]

For all testdata, it is guaranteed that 0R,G,B5000 \leq R, G, B \leq 500.

Translated by ChatGPT 5