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;
#define oo 1000000010
#define mod 1000000007
const int N = 1010;
char grid[N][N];
int r[N] , r2[N];
int n;


string tmp[] = {"aabbi","ccf.i","ddfee","..ghj","..ghj"};

string tmp2[] = {"aabbcc.","ddee..l","ffgg..l","....hjm","....hjm","....ikn","....ikn"};

int main(){
	cin >> n;
	for(int i = 0 ;i < n;i++) for(int j = 0 ;j < n;j++) grid[i][j] ='.';
	for(int i = 0 ;i < n;i++) grid[i][n] = '\0';
	if(n == 2){
		puts("-1");
		return 0;
	}
	if(n == 7){
		for(int i = 0 ;i < n;i++)
			puts(tmp2[i].c_str());
		return 0;
	}
	if(n == 5){
		for(int i = 0 ;i < n;i++)
			puts(tmp[i].c_str());
		return 0;
	}
	if(n % 3 == 0){
		for(int i = 0 , j = 0;i < n;i+=3,j+=3){
			grid[i][j] = grid[i][j + 1] = 'a';
			grid[i + 1][j + 2] = 'b';
			grid[i + 2][j + 2] = 'b';
		}
		for(int i = 0; i < n;i++)
			puts(grid[i]);
		return 0;
	}
	if(n % 2 == 0 && n != 2){
		for(int i = 0 , j = 0;i < n;i+=2, j += 2){
			grid[i][j] = grid[i][j + 1] = 'a';
			grid[i + 1][j] = grid[i + 1][j + 1] = 'b';
		}
		for(int i = 0 , j = 2;j < n;i += 2, j += 2){
			grid[i][j] = grid[i + 1][j] = 'c';
			grid[i][j + 1] = grid[i + 1][j + 1] = 'd'; 
		}
		grid[n - 2][0] = grid[n - 1][0] = 'c';
		grid[n - 2][1] = grid[n - 1][1] = 'd';
		for(int i = 0 ;i < n;i++)
			puts(grid[i]);
		return 0;
	}
	else if(n % 2 == 1){
		for(int i = 0 ;i < 5;i++) for(int j = 0 ;j < 5;j++) grid[i][j] = tmp[i][j];
		for(int i = 5 , j = 5; i < n;i+=2,j+=2){
			grid[i][j] = grid[i][j + 1] = 'a';
			grid[i + 1][j] = grid[i + 1][j + 1] = 'b';
		}
		for(int i = 5 , j = 7;j < n;i += 2, j += 2){
			grid[i][j] = grid[i + 1][j] = 'c';
			grid[i][j + 1] = grid[i + 1][j + 1] = 'd'; 
		}
		grid[n - 2][5] = grid[n - 1][5] = 'c';
		grid[n - 2][6] = grid[n - 1][6] = 'd';
		for(int i = 0 ;i < n;i++)
			puts(grid[i]);
		return 0;
	}
	puts("-1");
	return 0;
}