Subject requirements according to a certain city ordinary taxi fee standards, write a program to calculate the fare, specific standard is as follows:
Start mileage of 3 kilometers, the starting fare 10 yuan.
Super start mileage within 10 km, 2 yuan per kilometer.
The part of more than 10 kilometers above 50% of the circular extra allowance, namely 3 yuan per kilometer.
Operating process, because the road resistance and passenger requests a temporary parking, according to 2 yuan per five minutes collecting (less than five minutes is not charging),
Input format requirements:
Input in the input range is given in the line (real Numbers, the unit for km) and the waiting time (integer, the unit is minutes), separated by Spaces,
The output format requirements:
In a line of output passengers should pay the fare (unit is yuan), round result, keep to the yuan,