# -*- coding: utf-8 -*-
value = input().split()
a,b = value
x = int(a)
y = int(b)
if(x==1):
    snack = float((y*4.00))
    print(f'Total: R$ {snack:.2f}')
if(x==2):
    snack = float((y*4.50))
    print(f'Total: R$ {snack:.2f}')
if(x==3):
    snack = float((y*5.00))
    print(f'Total: R$ {snack:.2f}')
if(x==4):
    snack = float((y*2.00))
    print(f'Total: R$ {snack:.2f}')
if(x==5):
    snack = float((y*1.50))
    print(f'Total: R$ {snack:.2f}')
'''
Escreva a sua solução aqui
Code your solution here
Escriba su solución aquí
'''
