#include <stdio.h> #include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(){ float a; int n,m; char b; scanf("%f %c",&a,&b); n=a; if(a<=1.0&&a>0) m=20; else if((a-n)>0){ m=20+n; } else if((a-n)==0){ m=19+n; } if(b=='y') m+=5; else m; printf("%d",m); return 0; }