#CCC24J1. Conveyor Belt Sushi
Conveyor Belt Sushi
At a new conveyor belt sushi restaurant, customers can take plates of sushi as they pass by.
- Each red plate costs $3
- Each green plate costs $4
- Each blue plate costs $5
Given the number of plates of each color that a customer takes, determine the total cost of their meal.
Input Format
- The first line contains a non-negative integer
R
, the number of red plates. - The second line contains a non-negative integer
G
, the number of green plates. - The third line contains a non-negative integer
B
, the number of blue plates.
Output Format Output a single non-negative integer — the total cost (in dollars).
Sample Input
0
2
4
Sample Output
28
Explanation: 0×3 + 2×4 + 4×5 = 28
.