from sys import stdin for line in stdin: n = int(line) if n == 1000: break print(n)
50 100 200 3000 1000 12
50 100 200 3000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!