题目描述
Problem Description
To provide a good dining experience for teachers and students, the canteen of Luogu Primary School insists on cooking and preparing each dish fresh.
Luogu Primary School has a total of $a$ teachers and $b$ students. The canteen's nutritionist allocates the meal requirements for each teacher and student:
- A student requires $R$ grams of rice, $V$ grams of vegetables, and $M$ grams of meat for one meal.
- A teacher requires $2R$ grams of rice, $3V$ grams of vegetables, and $3M$ grams of meat for one meal.
The canteen at Luogu Primary School prepares two meals a day, one at noon and one in the evening. Both students and teachers need the noon meal, while only teachers need the evening meal.
Now, how many grams of rice, vegetables, and meat does the canteen at Luogu Primary School need to prepare for one day?
Input Format
Input consists of one line with five positive integers $a, b, R, V, M$, representing the number of teachers, the number of students, and the amount of rice, vegetables, and meat required by a student for one meal, respectively.
Output Format
Output consists of one line with three positive integers, representing the total amount of rice, vegetables, and meat that the canteen needs to prepare for one day.
Sample Input and Output
Sample Input #1
5 10 200 100 150
Sample Output #1
6000 4000 6000
Sample Input #2
15 120 150 200 180
Sample Output #2
27000 42000 37800
Notes
[Sample Explanation]
For Sample #1, Luogu Primary School has 5 teachers and 10 students. Each student eats 1 meal per day, and each teacher eats 2 meals per day. Therefore:
- A student eats 200 grams of rice per meal. Thus, the required amount of rice is: $1 \times 10 \times 200 + 2 \times 5 \times 400 = 6000$ grams.
- A student eats 100 grams of vegetables per meal. Thus, the required amount of vegetables is: $1 \times 10 \times 100 + 2 \times 5 \times 300 = 4000$ grams.
- A student eats 150 grams of meat per meal. Thus, the required amount of meat is: $1 \times 10 \times 150 + 2 \times 5 \times 450 = 6000$ grams.
Therefore, the output is $6000, 4000, 6000$.
[Data Range]
For all data, it is guaranteed that: $1 \leq a, b, R, V, M \leq 10000$.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分