#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 dollars, each green plate costs dollars, and each blue plate costs 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 , the number of red plates the customer takes.
The second line contains a non-negative integer , the number of green plates the customer takes.
The third line contains a non-negative integer , the number of blue plates the customer takes.
Output Format
Output a non-negative integer , the number of dollars the meal costs.
0
2
4
28
Hint
[Sample 1 Explanation]
The customer takes red plates, green plates, and blue plates. So the cost of the meal is dollars.
[Constraints]
For all testdata, it is guaranteed that .
Translated by ChatGPT 5