x,y = input().split()
price = 0

if int(x) == 1:
    price = 4.00
elif int(x) == 2:
    price = 4.50
elif int(x) == 3:
    price = 5.00
elif int(x) == 4:
    price = 2.00
elif int(x) == 5:
    price = 1.50

total = int(y) * price
print("Total: R$",'%.2f'%total)
