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>
using namespace std;

int main()
{
    int n;
    cin >> n;
    if(n == 1 || n == 2){
        cout << -1 << endl;
        return 0;
    }
    char ans[1002][1002];
    for(int i = 0; i < n; i++) for(int j = 0; j < n; j++) ans[i][j] = '.';
    int b = 1;
    while(n % 2 == 0){
        n /= 2;
        b *= 2;
    }
    char c[1002][1002];
    if(n == 1){
        n *= 4;
        c[0][0] = c[0][1] = 'a';
        c[1][0] = c[1][1] = 'b';
        c[3][3] = c[3][2] = 'c';
        c[2][3] = c[2][2] = 'd';
        c[3][0] = c[2][0] = 'e';
        c[3][1] = c[2][1] = 'f';
        c[0][3] = c[1][3] = 'g';
        c[0][2] = c[1][2] = 'h';
        b /= 4;
    }
    else{
        for(int i = 0; i < n; i++) for(int j = 0; j < n; j++) c[i][j] = '.';
        for(int i = 0; i < (n - 3) / 2; i++){
            c[i][i] = c[i][i + 1] = char('a' + (i % 3));
            c[n - i - 1][i] = c[n - i - 2][i] = char('a' + (i % 3));
            c[n - i - 1][n - i - 1] = c[n - i - 1][n - i - 2] = char('a' + (i % 3));
            c[i][n - i - 1] = c[i + 1][n - i - 1] = char('a' + (i % 3));
        }
        if(n > 3){
            c[0][(n - 3) / 2 + 1] = c[0][(n - 3) / 2 + 2] = 'e';
            c[n - 1][(n - 3) / 2] = c[n - 1][(n - 3) / 2 + 1] = 'f';
            c[(n - 3) / 2][0] = c[(n - 3) / 2 + 1][0] = 'g';
            c[(n - 3) / 2 + 1][n - 1] = c[(n - 3) / 2 + 2][n - 1] = 'h';
        }
        c[(n - 3) / 2][(n - 3) / 2 + 1] = c[(n - 3) / 2][(n - 3) / 2 + 2] = 'i';
        c[(n - 3) / 2 + 1][(n - 3) / 2] = c[(n - 3) / 2 + 2][(n - 3) / 2] = 'j';
    }
    for(int k = 0; k < n * b; k += n){
        for(int i = 0; i < n; i++) for(int j = 0; j < n; j++) ans[k + i][k + j] = c[i][j];
    }
    for(int i = 0; i < n * b; i++){
        for(int j = 0; j < n * b; j++) cout << ans[i][j];
        cout << endl;
    }
}