while True:
    n1 = int(input())
    print(n1)
    if n1 < 0:
        break
        
#https://pt.stackoverflow.com/q/446980/101