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