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