#include<bits/stdc++.h>
using namespace std;
int main()
{
    int i,n,j,k,o=3,u=0;
    cin>>n; 
    k=n/2+1;
    for(i=1;i<=k-1;i++){
        for(j=1;j<=i-1;j++){
            cout<<" ";
        }
        for(j=1;j<=2*(k-i)+1;j++){
            if(j==1||j==2*(k-i)+1)
            cout<<"X";
            else
            cout<<" ";
        }
        cout<<endl;
    }
    for(i=1;i<=k;i++){
        for(j=1;j<=k-i;j++){
            cout<<" ";
        }
        for(j=1;j<=2*i-1;j++){
            if(j==1||j==2*i-1)
            cout<<"X";
            else
            cout<<" ";
        }
        cout<<endl;
    }
return 0;
 
}
/**************************************************************
	Problem: 1239
	User: lijinkai
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/