import fileinput
for line in fileinput.input():
line = line.split() #separates into words
third = float(line[2])
fourth = float(line[3])
print(line[0]+' '+line[1]+' '+str(third*fourth))
the_input = open('input.txt', 'r')
the_output = open('output.txt', 'w')
for line in the_input:
line = line.split()
third = float(line[2])
fourth = float(line[3])
the_output.write(line[0]+' '+line[1]+' '+str(third*fourth)+'\n')