(n=gets.to_i).times{|i|a=' '*n;a[i]=a[~i]=88;puts a.rstrip}