t=gets.to_i puts a=(z="Z")*t ((t-2).times{|i|puts " "*(t-i-2)+z};puts a)if t>1