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<cstring>
#include<cstdio>
#include<algorithm>
using namespace std;
int n;
#define Maxn 1005
bool f[Maxn];
int pre[Maxn];
char ch[Maxn][Maxn];
char c3[10][10]={
	{'a','a','.'},
	{'.','.','a'},
	{'.','.','a'} 
};
char c4[10][10]={
    {'a','a','b','c'},
    {'d','d','b','c'},
    {'b','c','a','a'},
    {'b','c','d','d'}
};
char c5[10][10]={
    {'a','a','b','b','a'},
    {'b','c','c','.','a'},
    {'b','.','.','c','b'},
    {'a','.','.','c','b'},
    {'a','b','b','a','a'}
};
char c7[10][10]={
    {'a','a','b','b','c','c','.'},
    {'d','d','.','d','d','.','a'},
    {'.','.','d','.','.','d','a'},
	{'.','.','d','.','.','d','b'},
	{'d','d','.','d','d','.','b'},
	{'.','.','d','.','.','d','c'},
	{'.','.','d','.','.','d','c'} 
};


inline void output(){
	for(int i=1;i<=n;++i){
		for(int j=1;j<=n;++j)printf("%c",ch[i][j]);
		puts("");
	}
}

int main(){
	scanf("%d",&n);
	f[0]=true;
	for(int i=1;i<=n;++i){
		if(i>=4&&f[i-4]){
			f[i]=true;
			pre[i]=4;
		}
		if(i>=5&&f[i-5]){
			f[i]=true;
			pre[i]=5;
		}
		if(i>=7&&f[i-7]){
			f[i]=true;
			pre[i]=7;
		}
	}
	for(int i=1;i<=n;++i)
	    for(int j=1;j<=n;++j)ch[i][j]='.';
	if(n%3==0){
		for(int i=1;i<=n;i+=3)
		    for(int j=0;j<3;++j)
		        for(int k=0;k<3;++k)
		            ch[i+j][i+k]=c3[j][k];
		output();
	}else if(f[n]){
		int tmp=n;
		while(n){
			if(pre[n]==4){
				for(int i=n-3;i<=n;++i)
				    for(int j=n-3;j<=n;++j)
				         ch[i][j]=c4[i-n+3][j-n+3];
			}
			if(pre[n]==5){
				for(int i=n-4;i<=n;++i)
				    for(int j=n-4;j<=n;++j)
				        ch[i][j]=c5[i-n+4][j-n+4];
			}
			if(pre[n]==7){
				for(int i=n-6;i<=n;++i)
				   for(int j=n-6;j<=n;++j)
				        ch[i][j]=c7[i-n+6][j-n+6];
			}
			n-=pre[n];
		}
		n=tmp;
		output(); 
	}else puts("-1");
	return 0;
}