while True: input = int(raw_input()) if input == 42: break
2 8 4 2 6 8 4 2 42
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!