name = input()

a = float(input())
b = float(input())

print("TOTAL = R$ {:.2f}".format(a + b * 0.15))

name = input()
a = float(input())
b = float(input())

print("TOTAL = R$ {:.2f}".format(a + b * 0.15))

Format code