fork download
  1. while True:
  2. n1 = int(input())
  3. if n1 < 0:
  4. break
  5. print (n1)
  6.  
  7. #https://pt.stackoverflow.com/q/446980/101
Success #stdin #stdout 0.02s 9364KB
stdin
1
2
3
-1
stdout
1
2
3