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;
typedef bool boolean;

const int N = 1005;

char ans3[12][12] = {"aa.", "..a", "..a"};
char ans4[12][12] = {"aacd", 
					 "bbcd",
					 "dcaa",
					 "dcbb"};

char ans5[12][12] = {"aabc.", 
					 "..bcd", 
					 "iij.d", 
					 "n.jaa", 
					 "nkkbb"};

char ans7[12][12] = {"aade...", 
					 "bbde...", 
					 "ccffg..", 
					 "..i.gee", 
					 "..ihhdd", 
					 "....cba", 
					 "....cba"};

char ans10[12][12] = {"aacd......", 
					  "bbcd......", 
					  "..eeab....", 
					  "..ffab....", 
					  "ef..cc....", 
					  "ef..dd....", 
					  "......aacd", 
					  "......bbcd", 
					  "......dcaa", 
					  "......dcbb"};

int n;
char ans[N][N];

void put(char (*T)[12], int x, int d) {
	for (int i = 0; i < d; i++) {
		for (int j = 0; j < d; j++) {
			ans[x + i][x + j] = T[i][j];
		}
	}
}

int main() {
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		for (int j = 0; j < n; j++) {
			ans[i][j] = '.';
		}
	}
	if (n == 1 || n == 2) {
		puts("-1");
		return 0;
	} else if (!(n % 3)) {
		for (int i = 0; i < n; i += 3)
			put(ans3, i, 3);	
	} else if (n == 4) {
		put(ans4, 0, 4);
	} else if (n == 5) {
		put(ans5, 0, 5);
	} else if (n == 7) {
		put(ans7, 0, 7);
	} else if (n == 10) {
		put(ans10, 0, 10);
	} else if (n == 11) {
		put(ans4, 0, 4);
		put(ans7, 4, 7);
	} else {
		int c4 = 0, t = 0;
		while ((n - c4 * 4) % 5)
			c4++;
		for (int i = 0; i < c4; i++, t += 4)
			put(ans4, t, 4);
		while (t < n)
			put(ans5, t, 5), t += 5;
	}
	for (int i = 0; i < n; i++)
		puts(ans[i]);
	return 0;
}