while True:
    n1 = int(input())
    if n1 < 0:
        break
    print (n1)

#https://pt.stackoverflow.com/q/446980/101