import sysa=sys.stdin.read()s="python is awesome!"r=''if'\n'not in a:print a;exit()a=a.replace('\n','',1)for c in s: if c in a:a,r=a.replace(c,'',1),r+c else:breakprint r+'\n'+a
abcdefghijklmnopqrstuvwxyz 0123456789
python abcdefgijklmqrsuvwxz0123456789
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!