#t45. 画正方形

画正方形

Draw a Square

Problem Description

Given a positive integer nn, output a square pattern of nn rows and nn columns (see the sample input/output). The pattern is made of uppercase letters.

The first row starts with the uppercase letter A\texttt A, the second row with B\texttt B, and so on; within each row, the 2nd column is the next letter after the 1st column, the 3rd column is the next letter after the 2nd column, and so on; in particular, the letter after the uppercase letter Z\texttt Z is defined to be the uppercase letter A\texttt A.

Input Format

The input is one line containing a positive integer nn. It is guaranteed that 2≤n≤402 \le n \le 40.

Output Format

Output the required square pattern.

Sample Input

Sample Input 1

3

Sample Input 2

5

Sample Output

Sample Output 1

ABC
BCD
CDE

Sample Output 2

ABCDE
BCDEF
CDEFG
DEFGH
EFGHI

Sample Explanation

In the first sample, n=3n=3. The first row starts with A\texttt A, followed by B\texttt B, C\texttt C → ABC\texttt{ABC}. The second row starts with B\texttt B, followed by C\texttt C, D\texttt D → BCD\texttt{BCD}. The third row starts with C\texttt C, followed by D\texttt D, E\texttt E → CDE\texttt{CDE}. The final output is a 33-row, 33-column square pattern.

Constraints

2≤n≤402 \le n \le 40