fork download
  1. from sys import stdin
  2.  
  3. for line in stdin:
  4. n = int(line)
  5. if n == 1000:
  6. break
  7. print(n)
  8.  
Success #stdin #stdout 0.07s 14076KB
stdin
50
100
200
3000
1000
12
stdout
50
100
200
3000