fork(1) download
  1. from sys import stdin
  2.  
  3. for line in stdin:
  4. n = int(line)
  5. if n == 2:
  6. break
  7. print(n)
  8.  
Success #stdin #stdout 0.08s 14048KB
stdin
1
2
3
4
5
6
stdout
1