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