fork(1) download
  1. n = int(input())
  2. while n != 42:
  3. print(n)
  4. n = int(input())
Success #stdin #stdout 0.02s 5864KB
stdin
1
2
10
42
11
stdout
1
2
10