f = lambda n:`n-12`==`n`[0]*3 for n in range(1, 10000): if f(n): print n
Standard input is empty
123 234 345 456 567 678 789
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!