#include<iostream>
using namespace std;
int main(void)
{
int x,n;
cin>>x>>n;
double ans;
switch(x)
{
case 1:ans=4.0;break;
case 2:ans=4.5;break;
case 3:ans=5.0;break;
case 4:ans=2.0;break;
case 5:ans=1.5;break;
}
printf("Total: R$ %.2f\n",n*ans);
return 0;
}