#include <stdio.h>
int main()
{
float height,weight,BMR;
int age;
char sex;
scanf("%f %f %d %c",&height,&weight,&age,&sex);
if(sex == 'M')
{
BMR=66+(6.3*weight*2.2)+(12.9*height*0.39)-(6.8*age);
}
else
{
BMR = 655+(4.3*weight*2.2)+(4.7*height*0.39)-(4.7*age);
}
printf("您需要消耗%.2f块巧克力。",BMR/230);
return 0;
}