#include<iostream>
#include<cmath>
using namespace std;
int main(){
double n;
char c;
cin >> n >> c;
if(n<=1.0){
if(c=='y'){
cout << "25" << endl;
}
else{
cout << "20" << endl;
}
}
else{
if(c=='y'){
cout << ceil(n)-1+25;
}
else{
cout << ceil(n)-1+20;
}
}
return 0;
}

京公网安备 11010502036488号