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