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<iostream>
#include<cstdio>
using namespace std;
const int N=1005;
const char s3[4][4]=
{
"aa.",
"..a",
"..a"
};
const char s4[5][5]=
{
"aabc",
"ddbc",
"efgg",
"efhh"
};
const char s5[6][6]=
{
"a.bbc",
"add.c",
"eeffg",
"hi..g",
"hi.jj"
};
const char s6[7][7]=
{
"aabbc.",
"d...ce",
"d.f..e",
"..fghh",
"ii.g.k",
".llnnk"
};
const char s7[8][8]=
{
"aabbc..",
".d..cee",
"fd...gg",
"f.h...i",
"..hjj.i",
"kklm...",
"..lmnn."
};
int n,m;
char col[N][N];
int main()
{
	scanf("%d",&n);
	if(n<=2)
	{
		printf("-1");
		return 0;
	}
	if(n==3)
	{
		for(int x=0;x<3;x++)
		{
			for(int y=0;y<3;y++)
				printf("%c",s3[x][y]);
			printf("\n");
		}
		return 0;
	}
	for(int i=1;i<=n;i++)
		for(int j=1;j<=n;j++)
			col[i][j]='.';
	if(n%4==0)
	{
		for(int i=1;i<=n;i+=4)
			for(int x=0;x<4;x++)
				for(int y=0;y<4;y++)
					col[i+x][i+y]=s4[x][y];
	}
	else if(n%4==1)
	{
		m=n-5;
		int i;
		for(i=1;i<=m;i+=4)
			for(int x=0;x<4;x++)
				for(int y=0;y<4;y++)
					col[i+x][i+y]=s4[x][y];
		for(int x=0;x<5;x++)
			for(int y=0;y<5;y++)
				col[i+x][i+y]=s5[x][y];
	}
	else if(n%4==2)
	{
		m=n-6;
		int i;
		for(i=1;i<=m;i+=4)
			for(int x=0;x<4;x++)
				for(int y=0;y<4;y++)
					col[i+x][i+y]=s4[x][y];
		for(int x=0;x<6;x++)
			for(int y=0;y<6;y++)
				col[i+x][i+y]=s6[x][y];
	}
	else if(n%4==3)
	{
		m=n-7;
		int i;
		for(i=1;i<=m;i+=4)
			for(int x=0;x<4;x++)
				for(int y=0;y<4;y++)
					col[i+x][i+y]=s4[x][y];
		for(int x=0;x<7;x++)
			for(int y=0;y<7;y++)
				col[i+x][i+y]=s7[x][y];
	}
	for(int i=1;i<=n;i++)
	{
		for(int j=1;j<=n;j++)
			printf("%c",col[i][j]);
		printf("\n");
	}
	return 0;
}