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 int N = 1005;

char ans[N][N];

void pattern1(int x, int y) {
	ans[x][y] = ans[x][y + 1] = 'a';
	ans[x + 1][y] = ans[x + 1][y + 1] = 'b';
}

void pattern2(int x, int y) {
	ans[x][y] = ans[x + 1][y] = 'c';
	ans[x][y + 1] = ans[x + 1][y + 1] = 'd';
}

int main() {
	int n;
	scanf("%d", &n);
	if (n == 2) {
		printf("-1\n");
	} else if (n == 3) {
		printf("aab\n");
		printf("d.b\n");
		printf("dcc\n");
	} else if (n == 7) {
		printf(".iijjkk\n");
		printf("xaab...\n");
		printf("xd.b...\n");
		printf("ydcc...\n");
		printf("y...aab\n");
		printf("z...d.b\n");
		printf("z...dcc\n");
	} else if (n % 2 == 0) {
		for (int i = 1; i <= n; i++) {
			for (int j = 1; j <= n; j++) {
				ans[i][j] = '.';
			}
		}
		for (int i = 1; i <= n; i += 2) {
			pattern1(i, i);
		}
		for (int i = 1; i <= n; i += 2) {
			if (i < n - 1) {
				pattern2(i, i + 2);
			} else {
				pattern2(i, 1);
			}
		}
		for (int i = 1; i <= n; i++) {
			for (int j = 1; j <= n; j++) {
				printf("%c", ans[i][j]);
			}
			printf("\n");
		}
	} else {
		for (int i = 1; i <= n; i++) {
			for (int j = 1; j <= n; j++) {
				ans[i][j] = '.';
			}
		}
		for (int i = 1; i <= n - 5; i += 2) {
			pattern1(i, i);
		}
		for (int i = 1; i <= n - 5; i += 2) {
			if (i < n - 6) {
				pattern2(i, i + 2);
			} else {
				pattern2(i, 1);
			}
		}
		ans[n - 4][n - 4] = ans[n - 4][n - 3] = 'a';
		ans[n - 4][n - 2] = ans[n - 4][n - 1] = 'b';
		ans[n - 4][n] = ans[n - 3][n] = 'c';
		ans[n - 2][n] = ans[n - 1][n] = 'd';
		ans[n][n] = ans[n][n - 1] = 'e';
		ans[n][n - 2] = ans[n][n - 3] = 'f';
		ans[n][n - 4] = ans[n - 1][n - 4] = 'g';
		ans[n - 2][n - 4] = ans[n - 3][n - 4] = 'h';
		ans[n - 3][n - 3] = ans[n - 2][n - 3] = 'i';
		ans[n - 1][n - 2] = ans[n - 1][n - 1] = 'j';
		for (int i = 1; i <= n; i++) {
			for (int j = 1; j <= n; j++) {
				printf("%c", ans[i][j]);
			}
			printf("\n");
		}
	}
	return 0;
}