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;
int n,dp[1111],ans[1111][1111];
int a4[4][4]={{1,1,3,4},{2,2,3,4},{5,6,7,7},{5,6,8,8}};
int a5[5][5]={{1,1,2,3,0},{0,0,2,3,4},{5,5,6,0,4},{7,0,6,8,8},{7,9,9,10,10}};
int a6[6][6]={{0,0,0,1,2,3},{0,0,0,1,2,3},{4,4,5,5,0,6},{0,0,7,7,8,6},{9,9,10,0,8,0},{11,11,10,0,12,12}};
int a7[7][7]={{0,0,0,0,1,2,3},{0,0,0,0,1,2,3},{0,0,0,0,4,5,6},{0,0,0,0,4,5,6},{7,7,8,8,0,0,9},{10,10,11,11,0,0,9},{12,12,13,13,14,14,0}};
void dfs(int n)
{
	if (!n) return;
	for (int i=4;i<=7;i++)
	{
		if (i<=n && dp[n-i])
		{
			dfs(n-i);
			int xx=n-i+1;
			if (i==4)
			{
				for (int j=0;j<4;j++)
				{
					for (int k=0;k<4;k++)
					{
						ans[xx+j][xx+k]=a4[j][k];
					}
				}
			}
			else if (i==5)
			{
				for (int j=0;j<5;j++)
				{
					for (int k=0;k<5;k++)
					{
						ans[xx+j][xx+k]=a5[j][k];
					}
				}
			}
			else if (i==6)
			{
				for (int j=0;j<6;j++)
				{
					for (int k=0;k<6;k++)
					{
						ans[xx+j][xx+k]=a6[j][k];
					}
				}
			}
			else
			{
				for (int j=0;j<7;j++)
				{
					for (int k=0;k<7;k++)
					{
						ans[xx+j][xx+k]=a7[j][k];
					}
				}
			}
			return;
		}
	}
}
int main()
{
	scanf("%d",&n);
	if (n<=2) 
	{
		printf("-1\n");
		return 0;
	}
	if (n==3)
	{
		printf("..a\n..a\nbb.\n");
		return 0;
	}
	dp[0]=1;
	for (int i=4;i<=n;i++)
	{
		for (int j=4;j<=7;j++)
		{
			if (i>=j && dp[i-j]) dp[i]=1;
		}
	}
	dfs(n);
	for (int i=1;i<=n;i++)
	{
		for (int j=1;j<=n;j++)
		{
			if (!ans[i][j]) putchar('.');
			else putchar('a'+ans[i][j]-1);
		}
		putchar('\n');
	}
	return 0;
}