even = []\x0d odd = []\x0d try:\x0d \x09while True:\x0d \x09\x09n = int(raw_input())\x0d \x09\x09if n % 2 == 0:\x0d \x09\x09\x09even.append(str(n))\x0d \x09\x09else:\x0d \x09\x09\x09odd.append(str(n))\x0d except EOFError:\x0d \x09pass\x0d \x09\x0d even.sort(lambda x,y: int(x)-int(y))\x0d odd.sort(lambda x,y: int(x)-int(y))\x0d print '\n'.join(even)+'\n'\x0d print '\n'.join(odd)\x0d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).