x,y = input().split() price = [4, 4.5, 5, 2, 1.5] for i in range(0, 5): if eval(x) == i+1: print("Total: R$ "f'{price[i]*eval(y):.2f}')