X by MarkByers

a=b=input()
exec"a-=2;_=abs(~a);print(b-_)/2*' '+'X%*.*s'%(_,_,'X');"*a

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

download

return top