x,y = map (int , input().split()) if(x==1): z=4.00 elif(x==2): z=4.50 elif(x==3): z=5.00 elif(x==4): z=2.00 elif(x==5): z=1.50 r = z*y print("Total: R$ %.2f"%r)