#include<iostream>
#include<iomanip>
#include<cstdio>
using namespace std;
int main()
{
int x,y;
double t;
cin>>x>>y;
switch(x){
case(1):t=4.00;
break;
case(2):t=4.50;
break;
case(3):t=5.00;
break;
case(4):t=2.00;
break;
case(5):t=1.50;
}
float X=t*y;
// cout<<"Total: R$ "<<fixed<<setprecision(2)<<X<<endl;
printf("Total: R$ %.2f",X);
return 0;
}