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 <string>

const int maxn = 1024;

int n;
char s[maxn][maxn];
int x, y;

std::string s4[4], s5[5], s6[6], s7[7];

void init() {
	s4[0] = "aabc";
	s4[1] = "ddbc";
	s4[2] = "bcaa";
	s4[3] = "bcdd";
	s5[0] = "aabba";
	s5[1] = "bcc.a";
	s5[2] = "b..cb";
	s5[3] = "a..cb";
	s5[4] = "abbaa";
	s6[0] = "aabc..";
	s6[1] = "ddbc..";
	s6[2] = "..aabc";
	s6[3] = "..ddbc";
	s6[4] = "bc..aa";
	s6[5] = "bc..dd";
	s7[0] = "aabbcc.";
	s7[1] = "dd.dd.a";
	s7[2] = "..d..da";
	s7[3] = "..d..db";
	s7[4] = "dd.dd.b";
	s7[5] = "..d..dc";
	s7[6] = "..d..dc";
}

void fill(int a) {
	if (a == 4) {
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 4; j++) {
				s[x+i][y+j] = s4[i][j];
			}
		}
	} else if (a == 5) {
		for (int i = 0; i < a; i++) {
			for (int j = 0; j < a; j++) {
				s[x+i][y+j] = s5[i][j];
			}
		}
	} else if (a == 6) {
		for (int i = 0; i < a; i++) {
			for (int j = 0; j < a; j++) {
				s[x+i][y+j] = s6[i][j];
			}
		}
	} else if (a == 7) {
		for (int i = 0; i < a; i++) {
			for (int j = 0; j < a; j++) {
				s[x+i][y+j] = s7[i][j];
			}
		}
	}
	x += a;
	y += a;
}

int main(int argc, char *argv[]) {  
	std::ios::sync_with_stdio(false);
	std::cin.tie(0); 
	init();
	std::cin >> n;
	if (n == 2) {
		std::cout << "-1\n";
	} else if (n == 3) {
		std::cout << "aa.\n..a\n..a\n";
	} else {
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				s[i][j] = '.';
			}
		}
		int a = n%4+4; 
		x = 0, y = 0;
		fill(a);
		for (int i = 0; i < (n-a)/4; i++) {
			fill(4);
		}
		for (int i = 0; i < n; i++) {
			for (int j = 0; j < n; j++) {
				std::cout << s[i][j];
			}
			std::cout << '\n';
		}
	}
}