x=n=input() while x:print'%*s'%(x,'Z'*(n>x>1or n));x-=1

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

download

return top