#include <iostream>
#include <iomanip>
using namespace std;
int main(){
int x,y,total;
cin >> x >> y;
switch(x){
case(1):
total = y * 400;
break;
case(2):
total = y * 450;
break;
case(3):
total = y * 500;
break;
case(4):
total = y * 200;
break;
case(5):
total = y * 150;
break;
default:
break;
}
cout << fixed << "Total: R$ " << setprecision(2) << (float)(total/100.0);
return 0;
}