i=input() print"Z"*i for j in range(2,i):print" "*(i-j)+"Z" if i>1:print"Z"*i