from os import read\x0d inputs = read(0, int(1e5)).replace(' ','').replace('\n','')\x0d i,j,c=0,1,2\x0d while i < len(inputs):\x0d print inputs[i:j]\x0d i=j; j+=c; c+=1\x0d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).