a=1
while a>0:

b=raw_input('enter integer: ')
if b==42:
    a=-1
    break
else:
    print(b)