from os import read inputs = read(0, int(1e5)).replace(' ','').replace('\n','') i,j,c=0,1,2 while i < len(inputs): print inputs[i:j] i=j; j+=c; c+=1