b=input() a=b/2 c=[" "*i+"X"+" "*(b+2*~i)+"X" for i in range(a)] print"\n".join(c)+"\n"+" "*a+"X"+"\n"+"\n".join(c[::-1])