13881 - Sales Forecast   

Description

 

Ben is planning to open a pizza store. He wants to predict the sales volume of pizza for a week in order to prepare the ingredients accordingly.

The formula for calculating the sales volume for each day of the week is as follows:
(Note that f1, f2, f3 are factors that could affect the pizza sales. They are all integers)

Monday's predicted volume = 2 * f1 + 3 * f3
Tuesday's predicted volume = 0.2 * f1 + 5 * f3 + 20
Wednesday's predicted volume = 0.5 * f1 + 4 * f3 + 10
Thursday's predicted volume = 0.35 * f1 + 7 * f3 + 20
Friday's predicted volume = 0.2 * f1 + 5 * f2 + 100
Sunday's predicted volume = 0.8 * f1 + 15 * f2 + 105

Ben wants to have a day off on Saturday, so he doesn't need to predict the volume for Saturday.
Additionally, since it's not possible to sell half a pizza, you must round the calculated volume to the nearest whole number.

Note: Use the round() function to round to the nearest whole number.

Input

 

Six lines of factors

The format of each line is given as:


f1 f2 f3 for Monday
f1 f2 f3 for Tuesday
f1 f2 f3 for Wednesday
f1 f2 f3 for Thursday
f1 f2 f3 for Friday
f1 f2 f3 for Sunday

 

Examples are shown below. 


1 2 3
2 4 5
5 6 7
8 10 2
4 5 10
7 4 5

 

Output

 

The output will be:


Monday:11
Tuesday:45
Wednesday:40
Thursday:37
Friday:126
Sunday:171


Example: Monday's sales volume = (2 * 1) + (3 * 3) = 11

Sample Input  Download

Sample Output  Download

Tags




Discuss