<> subject :

According to the standard of taxi charge in a city, the program is required to calculate the fare . The specific standards are as follows :

* Starting mileage is 3 kilometre , Start up fee 10 element ;
* After exceeding the starting mileage 10 Within km , Per kilometer 2 element ;
* exceed 10 Extra charge for the part above km 50% Return subsidy fee , That is, every kilometer 3 element ;
* During operation , Temporary parking due to road obstruction and passengers' request , Press per 5 minute 2 Yuan ( Insufficient 5 There is no charge for minutes ).
<> Input format :

Input gives the entered mileage in one line ( The unit is kilometer , Accurate to the decimal point 1 position ) And waiting time ( integer , The unit is minutes ), They are separated by spaces .

<> Output format :

Output the fare payable by passengers in one line ( The unit is yuan ), Round the result , Keep to yuan .

<> sample input 1:

2.6 2

<> sample output 1:

10

<> sample input 2:

5.1 4

<> sample output 2:

14

<> sample input 3:

12.5 9

<> sample output 3:

34

<> code :
#include<stdio.h> int main() { float a=10.0; int c; float b; scanf("%f%d",&b,&c
); if(b>3&&b<=10) a+=(b-3)*2; if(b>10) a+=(b-10)*3+14; a+=(c/5)*2; c=a+0.5;
printf("%d",c); return 0; }

Technology