p1 = input()

code1, quant1, price1 = p1.split()

p2 = input()

#code2, quant2, price2 = p2.split()

#pricef = float((quant1*price1)+(quant2*price2))

print(code1,'\n', quant1,'\n', price1)
#print('VALOR A PAGAR: R$ {:.2f}'.format(pricef))