Problem: Let us consider a grid of squares with N rows and N columns. You want to put some domino pieces on this grid. Each domino piece covers two squares that have a common side. Each square can be covered by at most one piece.

For each row of the grid, let's define its quality as the number of domino pieces that cover at least one square in this row. We define the quality of each column similarly.

Find a way to put at least one domino piece on the grid so that the quality of every row is equal to the quality of every column, or determine that such a placement doesn't exist.

Constraints

* 2 \le N \le 1000

Input

Input is given from Standard Input in the following format:


N


Output

If the required domino placement doesn't exist, print a single integer `-1`.

Otherwise, output your placement as N strings of N characters each. If a square is not covered, the corresponding character must be `.` (a dot). Otherwise, it must contain a lowercase English letter. Squares covered by the same domino piece must contain the same letter. If two squares have a common side but belong to different pieces, they must contain different letters.

Examples

Input

6


Output

aabb..
b..zz.
ba....
.a..aa
..a..b
..a..b


Input

2


Output

-1

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const string c3[3] = {
"aa.",
"..b",
"..b"
};
const string c4[4] = {
"abcc",
"abdd",
"eefg",
"hhfg"
};
const string c5[5] = {
"aabbc",
".de.c",
"fde..",
"f.ghh",
"iigjj"
};
const string c6[6] = {
"aabbcc",
"ddeeff",
"...ghi",
"...ghi",
"jkl...",
"jkl..."
};
const string c7[7] = {
"aabbcc.",
"ddee..f",
"gghh..f",
"....ijk",
"....ijk",
"....lmn",
"....lmn"
};
int n;
string ans[1005];
int main() {
	scanf("%d", &n);
	if (n == 2) {
		puts("-1");
		return 0;
	}
	if (n == 7) {
		for (int i = 0; i < 7; i++)
			puts(c7[i].c_str());
		return 0;
	}
	if (n == 11) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				ans[i] += '.';
			}
		}
		for (int i = 0; i < 5; i++)
			for (int j = 0; j < 5; j++)
				ans[i][j] = c5[i][j];
		for (int i = 0; i < 6; i++)
			for (int j = 0; j < 6; j++)
				ans[5 + i][5 + j] = c6[i][j];
		for (int i = 0; i < n; i++)
			puts(ans[i].c_str());
		return 0;
	}
	if (n == 3 || n == 6) {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				ans[i] += '.';
			}
		}
		for (int k = 0; k < n / 3; k++) {
			for (int i = 0; i < 3; i++) {
				for (int j = 0; j < 3; j++) {
					ans[k * 3 + i][k * 3 + j] = c3[i][j];
				}
			}
		}
		for (int i = 0; i < n; i++)
			puts(ans[i].c_str());
		return 0;
	}
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			ans[i] += '.';
		}
	}
	int c = 0;
	while ((n - c * 5) % 4 != 0) c++;
	int d = (n - c * 5) / 4;
	for (int k = 0; k < d; k++) {
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 4; j++) {
				ans[k * 4 + i][k * 4 + j] = c4[i][j];
			}
		}
	}
	for (int k = 0; k < c; k++) {
		for (int i = 0; i < 5; i++) {
			for (int j = 0; j < 5; j++) {
				ans[d * 4 + k * 5 + i][d * 4 + k * 5 + j] = c5[i][j];
			}
		}
	}
	for (int i = 0; i < n; i++)
		puts(ans[i].c_str());
	return 0;
}