n=input() a=l=1 while a<n:exec"print a,;a+=1;"*l;print;l+=1
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page