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