#include <stdio.h> #include <string.h> int main(){ int a,b; char c; if (scanf("%d %d %c", &a, &b, &c) == 3){ double sum =0; if(b==90) { if(c=='m') { sum = 6.95*a*0.95; } else sum = 6.95*a*0.97; } else if(b==93) { if(c=='m') { sum = 7.44*a*0.95; } else sum = 7.44*a*0.97; } else { if(c=='m') { sum = 7.93*a*0.95; } else sum = 7.93*a*0.97; } printf("%.2f",sum); }else{ printf("input wrong"); } return 0; }