public static void main(String[] args) {
		Scanner entrada = new Scanner(System.in);
		System.out.print("N=");
		
		int n = entrada.nextInt();
		int i  = 1;
		int j;
		
		if (n % 2==0)
		    n++;
		
		int sp=(n-1)/2+1;
		
		while (i <= n) {
			j=1;
			espacos(sp);
			
			while (j <= i){
				System.out.print("X");
				j++;           
			}
			
			sp--;
			i+=2;
			System.out.println("");
		}
	}