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