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 ll long long
#define ld long double
#define db double
#define pint pair<int,int>
#define mk(x,y) make_pair(x,y)
#define fir first
#define sec second
#define Rep(x,y,z) for(int x=y;x<=z;x++)
#define Red(x,y,z) for(int x=y;x>=z;x--)
using namespace std;
const int MAXN=1e3+5;
const char s4[4][4]={{'a','a','c','d'},{'b','b','c','d'},{'e','f','g','g'},{'e','f','h','h'}};
const char s5[5][5]={{'a','a','b','b','c'},{'h','i','i','.','c'},{'h','.','.','j','d'},{'g','.','.','j','d'},{'g','f','f','e','e'}};
char buf[1<<12],*pp1=buf,*pp2=buf,nc;int ny;
inline char gc() {return pp1==pp2&&(pp2=(pp1=buf)+fread(buf,1,1<<12,stdin),pp1==pp2)?EOF:*pp1++;}
//inline char gc(){return getchar();}
inline int read(){
	int x=0;for(ny=1;nc=gc(),(nc<48||nc>57)&&nc!=EOF;)if(nc==45)ny=-1;if(nc<0)return nc;
	for(x=nc-48;nc=gc(),47<nc&&nc<58&&nc!=EOF;x=(x<<3)+(x<<1)+(nc^48));return x*ny;
}
int n;char ans[MAXN][MAXN];
int main(){
//	freopen("std.in","r",stdin);
//	freopen("std.out","w",stdout);
	n=read();
	if(n==1||n==2)return puts("-1"),0;
	if(n==3)return puts("aab\nd.b\ndcc"),0;
	if(n==6)return puts("aabb..\nb..zz.\nba....\n.a..aa\n..a..b\n..a..b\n"),0;
	if(n==7)return puts("..aeeff\ndca....\ndcb....\n..bgghh\nmli....\nmli....\nnn.jjkk"),0;		
	if(n==11)return puts("..aeeff....\ndca........\ndcb........\n..bgghh....\nmli........\nmli........\nnn.jjkk....\n.......aacd\n.......bbcd\n.......efgg\n.......efhh"),0;
	Rep(i,0,n-1)Rep(j,0,n-1)ans[i][j]='.';
	Rep(t,0,1000)if((n-4*t)%5==0){
		Rep(i,0,t-1){
			int x=i*4;
			Rep(j,0,3)Rep(k,0,3)ans[x+j][x+k]=s4[j][k];
		}
		Rep(i,0,(n-4*t)/5-1){
			int x=t*4+i*5;
			Rep(j,0,4)Rep(k,0,4)ans[x+j][x+k]=s5[j][k];
		}
		break;
	}Rep(i,0,n-1)puts(ans[i]);
	return 0;
}