Building
Time Limit: 1 sec
The Problem
A Building has M floors. Every floor has N rooms. 1 room takes D days to decorate by P people. Per person charge T taka. What will be the total cost? If more Q people joined with P people then how many days it will take and then what will be the total cost?
Example:
M = 50
N = 12
D = 4
P = 10
Q = 5
T = 50000
Total Person = 10
Total Days for P People = 2400 Days
Total Cost = 1200000000
Total Person = 15
Total Days for Total Person after Q Person joined = 1600 Days
Total Cost = 1200000000
The Input
Input file will contain six integer values M (M <= 55), N (N <= 15), D (D < 10), P (P < 15), Q (Q < 25), T (T <= 89000).
The Output
Output will print 6 lines. After three lines there will be an extra new line. First three lines will print Total Person, Total Days, and Total Charge for P person. Last three lines will do the same for Total person after Q person joined. Remember there is space before and after Colon and all the Colons will be print as a line.
Sample Input
50 12 4 10 5 50000
Sample Output
Person : 10
Days : 2400 Days
Charge : 1200000000 Taka
Person : 15
Days : 1600 Days
Charge : 1200000000 Taka
Problem Setter: Samia Safa Ahmed