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

京公网安备 11010502036488号