w=1 for i=1,io.read()do c=" "if i+i>=w*w+w then c="\n"w=w+1 end io.write(i..c)end