(n=gets.to_i).times{|i|s=' '*n s[i]=s[n+~i]=?X puts s.rstrip}