X by kt3k

n=input()
X=' '*n+'X'
m=1
exec"print X[-m:]+X[m*2:];n-=2;m+=n>0or-1;"*n

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

download

return top