#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int ID,num;
cin >> ID >>num;
if(ID == 1){
printf("Total: R$ %.2f",num*4.0);
}
if(ID == 2){
printf("Total: R$ %.2f",num*4.50);
}
if(ID == 3){
printf("Total: R$ %.2f",num*5.0);
}
if(ID == 4){
printf("Total: R$ %.2f",num*2.0);
}
if(ID == 5){
printf("Total: R$ %.2f",num*1.5);
}
return 0;
}