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