n=i=input() s=' 123456789' while-n<i-1:i-=1;t=s[:abs(i)+3]+s;print t[2:n+2]+t[n:1:-1]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page