#include <stdio.h>
int main(void)
{
float a,ex_Price;
char b;
int Price ;
scanf("%f %c",&a, &b);
if(a < 1)
Price = 20;
else
{
ex_Price = a - 1;
if(ex_Price - (int)ex_Price > 0)
ex_Price = (int)ex_Price + 1;
Price = 20 + ex_Price;
}
if(b == 'y')
Price = Price + 5;
printf("%d", Price);
return 0;
}

京公网安备 11010502036488号