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 <set>
#include <queue>
#include <cmath>
#include <bitset>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <cstring>
#include <iostream>
#include <algorithm>
#define debug(x) cerr<<#x<<'='<<x<<endl
#define set0(x) memset(x,0,sizeof(x))
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pii;
template<typename T> void read(T &x){
	x = 0;char ch = getchar();ll f = 1;
	while(!isdigit(ch)){if(ch == '-')f*=-1;ch=getchar();}
	while(isdigit(ch)){x = x*10+ch-48;ch=getchar();}x*=f;
}
int n;
char ans[1010][1010];
string a4[4] = {"aaef","bbef","cdgg","cdhh"};
string a5[5] = {"aabbi","ccf.i","ddfee","..ghj","..ghj"};
string a6[6] = {"aabbcc","ddeeff","ghi...","ghi...","...jkl","...jkl"};
string a7[7] = {"aabbcc.", "ddee..l", "ffgg..l", "....hjm", "....hjm", "....ikn", "....ikn"};
int main() {
	read(n);
	if(n == 2){
		cout<<-1<<endl;
		return 0;
	}
	if(n == 3){
		cout<<"aa.\n..b\n..b"<<endl;
		return 0;
	}
	if(n%4 == 0){
		for(int i=0;i<n;i++){
			for(int j=0;j<n;j++){
				ans[i][j] = a4[i%4][j%4];
			}
		}
	}
	if(n%4 == 1){
		for(int i=0;i<5;i++){
			for(int j=0;j<5;j++){
				ans[i][j] = a5[i][j];
			}
		}
		for(int k=5;k<n;k+=4){
			for(int i=0;i<4;i++){
				for(int j=0;j<4;j++){
					ans[k+i][k+j] = a4[i][j];
				}
			}
		}
	}
	if(n%4 == 2){
		for(int i=0;i<6;i++){
			for(int j=0;j<6;j++){
				ans[i][j] = a6[i][j];
			}
		}
		for(int k=6;k<n;k+=4){
			for(int i=0;i<4;i++){
				for(int j=0;j<4;j++){
					ans[k+i][k+j] = a4[i][j];
				}
			}
		}
	}
	if(n%4 == 3){
		for(int i=0;i<7;i++){
			for(int j=0;j<7;j++){
				ans[i][j] = a7[i][j];
			}
		}
		for(int k=7;k<n;k+=4){
			for(int i=0;i<4;i++){
				for(int j=0;j<4;j++){
					ans[k+i][k+j] = a4[i][j];
				}
			}
		}
	}
	for(int i=0;i<n;i++){
		for(int j=0;j<n;j++){
			if(!ans[i][j])ans[i][j] = '.';
			cout<<ans[i][j];
		}
		cout<<endl;
	}
	return 0;
}