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>

using namespace std;

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	
	int n;
	cin >> n;
	if(n==2){
		cout << -1 << "\n";
		return 0;
	}
	if(n%3==0){
		for(int i=0;i<n;i++){
			for(int j=0;j<n;j++){
				if(i%3==2){
					if(j%3==0){
						cout << ".";
					}else{
						cout << "a";
					}
				}else{
					if(j%3==0){
						cout << "a";
					}else{
						cout << ".";
					}
				}
			}
			cout << "\n";
		}
		return 0;
	}
	vector<vector<char>> p4=
	{
		{'a','a','c','d'},
		{'b','b','c','d'},
		{'c','d','a','a'},
		{'c','d','b','b'}
	};
	
	vector<vector<char>> p5=
	{
		{'a','a','d','e','e'},
		{'b','b','d','.','f'},
		{'c','c','g','g','f'},
		{'.','.','a','b','c'},
		{'.','.','a','b','c'}
	};
	vector<vector<char>> p7=
	{
		{'a','a','.','a','a','.','a'},
		{'.','b','b','.','.','b','a'},
		{'a','.','a','a','.','b','.'},
		{'a','.','.','.','a','.','a'},
		{'.','b','.','.','a','.','a'},
		{'a','b','.','.','b','b','.'},
		{'a','.','a','a','.','a','a'}
	};
	vector<vector<char>> res(n,vector<char>(n,'.'));
	vector<vector<int>> dec(n+10);
	dec[4].push_back(4);
	dec[5].push_back(5);
	dec[7].push_back(7);
	for(int i=8;i<=n;i++){
		if(dec[i-4].size()>0){
			dec[i]=dec[i-4];
			dec[i].push_back(4);
		}else if(dec[i-5].size()>0){
			dec[i]=dec[i-5];
			dec[i].push_back(5);
		}else if(dec[i-7].size()>0){
			dec[i]=dec[i-7];
			dec[i].push_back(7);
		}
	}
	int ind=0;
	for(int d:dec[n]){
		if(d==4){
			for(int i=0;i<d;i++){
				for(int j=0;j<d;j++){
					res[i+ind][j+ind]=p4[i][j];
				}
			}
		}
		if(d==5){
			for(int i=0;i<d;i++){
				for(int j=0;j<d;j++){
					res[i+ind][j+ind]=p5[i][j];
				}
			}
		}
		if(d==7){
			for(int i=0;i<d;i++){
				for(int j=0;j<d;j++){
					res[i+ind][j+ind]=p7[i][j];
				}
			}
		}
		ind+=d;
	}
	for(int i=0;i<n;i++){
		for(int j=0;j<n;j++){
			cout << res[i][j];
		}
		cout << "\n";
	}
	return 0;
}