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>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;

const char B4[4][5]={
	"abcc",
	"abdd",
	"eegh",
	"ffgh"
};

const char B5[5][6]={
	"ahhgg",
	"ai..f",
	"bi..f",
	"b.jje",
	"ccdde"
};

const char B7[7][8]={
	"a.hh.gg",
	"aii..k.",
	"..m..kf",
	"b.m...f",
	"bl.nn..",
	".l..jje",
	"cc.dd.e"
};

int main(){
	int n; scanf("%d",&n);

	if(n==2) return puts("-1"),0;

	char B[1000][1001]={};
	rep(i,n) rep(j,n) B[i][j]='.';

	if(n%3==0){
		rep(k,n/3){
			B[3*k+0][3*k+0]='a';
			B[3*k+1][3*k+0]='a';
			B[3*k+2][3*k+1]='b';
			B[3*k+2][3*k+2]='b';
		}
	}
	else{
		int dp[1001];
		rep(i,n+1) dp[i]=-1;
		dp[0]=0;
		rep(i,n-4+1) if(dp[i]!=-1) dp[i+4]=4;
		rep(i,n-5+1) if(dp[i]!=-1) dp[i+5]=5;
		rep(i,n-7+1) if(dp[i]!=-1) dp[i+7]=7;

		vector<int> P;
		{
			int now=n;
			while(now>0) P.emplace_back(dp[now]), now-=dp[now];
		}

		int pos=0;
		for(int a:P){
			rep(i,a) rep(j,a) {
				if     (a==4) B[pos+i][pos+j]=B4[i][j];
				else if(a==5) B[pos+i][pos+j]=B5[i][j];
				else if(a==7) B[pos+i][pos+j]=B7[i][j];
			}
			pos+=a;
		}
	}

	rep(i,n) puts(B[i]);

	return 0;
}