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;

char box3[5][5] = {
"aab",
"c.b",
"cdd"
};

char box4[5][5] = {
"aabc",
"ccbc",
"dbaa",
"dbcc"
};

char box5[6][6] = {
"a.bbc",
"a.c.c",
"ddcbb",
"bb.ac",
".ccac"
};

char box6[7][7] = {
"aabbaa",
"bc..b.",
"bc..b.",
"..ca.a",
"..ca.a",
"aabbcc"
};

char box7[8][8] = {
"a...baa",
"a.a.b..",
"bbacc..",
".cca.aa",
".a.a.bb",
"bab....",
"b.baa.."
};

int dp[1050],pre[1050];
char ans[1050][1050];

int main()
{
	int n;
	scanf("%d",&n);
	if(n <= 2)
	{
		printf("-1\n");
	}
	else if(n % 3 == 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 += 3)
		{
			for(int j = 0;j < 3; ++ j)
				for(int k = 0;k < 3; ++ k)
					ans[i + j][i + k] = box3[j][k];
		}
		for(int i = 1;i <= n; ++ i)
			printf("%s\n",ans[i] + 1);
	}
	else
	{
		dp[0] = 1;
		for(int i = 0;i <= 1000; ++ i)
		{
			if(!dp[i]) continue;
			if(!dp[i + 4]) dp[i + 4] = 1,pre[i + 4] = i;
			if(!dp[i + 5]) dp[i + 5] = 1,pre[i + 5] = i;
			if(!dp[i + 6]) dp[i + 6] = 1,pre[i + 6] = i;
			if(!dp[i + 7]) dp[i + 7] = 1,pre[i + 7] = i;
		}
		for(int i = 1;i <= n; ++ i)
			for(int j = 1;j <= n; ++ j)
				ans[i][j] = '.';
		for(int i = 1,cur = n;i <= n;i += cur - pre[cur],cur = pre[cur])
		{
			int ln = cur - pre[cur];
			for(int j = 0;j < ln; ++ j)
				for(int k = 0;k < ln; ++ k)
					ans[i + j][i + k] = ln == 4 ? box4[j][k] : ln == 5 ? box5[j][k] : ln == 6 ? box6[j][k] : box7[j][k];
		}
		for(int i = 1;i <= n; ++ i)
			printf("%s\n",ans[i] + 1);
	}
}