#include<stdio.h>
int main()
{
float s,taxi,cost;
int t,wait;
scanf("%f %d",&s,&t);
wait=t/5*2;
if(s<=3)
taxi=10;
else if(s>3&&s<=10)
taxi=10+(s-3)*2;
else
taxi=24+(s-10)*3;
cost=taxi+wait;
printf("%.0f",cost); // 这里实际是做一个实验,发现%.0f本身可以进行四舍五入。round算法?
/* printf("%.0f\n",cost+0.5);
float a=7.7;
printf("%.0f",a);*/ //也可以用强制类型转换,将cost+0.5然后转换成int实现四舍五入。
return 0;
}