you work as a programmer in the company "express logistics". Your first serious task & mdash; Create a calculator for managers who will calculate the final time and cost of delivery of one package. Calculations depend on several factors: the delivery area, the weight of the package, the order time and the type of delivery (ordinary or express).
rn
rules calculation:
rn
rn - basic tariffs for districts: rn
rn - "central" - 30 minutes, the base cost - 150 rub.
rn - "sleeping" : the base time - 60 minutes, the basic cost is 200 rubles.
rn - "industrial" : the base time is 90 minutes, the base cost is 250 rubles. 14pt; ">
rn
rn - weight for weight: rn
rn - strictly larger & nbsp; 10 kg, 15 minutes are added to the delivery time, and to the cost & mdash; 50 rub. This margin is used & nbsp; after & nbsp; selection of the basic tariff.
rn
rn rn - an hour of peak: rn
rn - peak hours of & nbsp; from 8 to 8 to 8 to 10 in the morning (inclusive) & nbsp; and & nbsp; from 17 to 20 pm (inclusive) . The order is placed at the peak hour, 30 minutes are added to the delivery time, and the total cost (already taking into account the possible margin for weight) & nbsp; increases by 20% & nbsp; (multiplied by 1.2).
rn
rn - Express Delivery Modifier: rn
rn - is reduced by 2 times & nbsp; (integer division), and the total cost (also with all margins) & nbsp; doubles .
rn
rn rn ol> rn Objective:
write a program that requests all the necessary data from the user and displays the final time and cost of delivery. All calculations should be applied sequentially in the indicated order.
Input format
The name of the area (line)
the weight of the package (material number)
order (> order (a whole order hour Number, 0-23)
type of delivery (line, "standard" or "express")
Output format
The final time and cost (line) or a message that the area is not served (line).
Example
Output
The final delivery time: 30 minutes. Final cost: 150 rubles.
Hint
There will be no clue here, decide for yourself!