n=r=input() c=v=0 h=1 while n: for _ in"_"*int(n):c+=h;r+=v;print`c-1`+`r-1`, h,v=v,-h;n-=.5

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top