#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int a, b;
double n;
cin >> a >> b;
if (a == 1) n = 4;
else if (a == 2) n = 4.5;
else if (a == 3) n = 5;
else if (a == 4) n = 2;
else n = 1.5;
printf("Total: R$ %.2f", n * b);
return 0;
}