#CCBCHBA0000109. Hình chữ X (X-Shaped Grid)

Hình chữ X (X-Shaped Grid)

X-Shaped Grid

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given a positive odd nn, print an nn-by-nn grid. Cell (i,j)(i,j) is X if i=ji=j or i+j=n+1i+j=n+1, and . otherwise. The diagonals meet at one central cell, which is printed once.

Input

One line contains odd integer nn.

Output

Print exactly nn lines, each of nn adjacent characters.

Subtasks

  • Subtask 1 (20%): 1≤n≤51\le n\le 5 and nn is odd.

  • Subtask 2 (30%): 1≤n≤151\le n\le 15 and nn is odd.

  • Subtask 3 (50%): 1≤n≤311\le n\le 31 and nn is odd.

Examples

Example 1

Input:

3

Output:

X.X
.X.
X.X

Explanation:

For n=3, X appears on either diagonal and the center is printed only once.

Example 2

Input:

1

Output:

X

Explanation:

For n=1, X appears on either diagonal and the center is printed only once.