while 1 : a = int(raw_input()) if a == 42: break; print (a)
1 2 88 42 99
1 2 88
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!