<reponame>omar115/code_for_Kids
a = input()
b = float(input())
c = float(input())

rst = b + (c*15) / 100

print('TOTAL = R$ {:.2f}'.format(rst))
a = input()
b = float(input())
c = float(input())

rst = b + (c*15) / 100

print('TOTAL = R$ {:.2f}'.format(rst))