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(){
    int N;
    cin >> N;
    if(N == 2){
        cout << -1 << endl;
        return 0;
    }
    string ans[1000];
    for(int i=0; i<N; i++) ans[i] = string(N, '.');

    string pat3[3], pat4[4], pat5[5], pat7[7];
    pat3[0] = "a..";
    pat3[1] = "a..";
    pat3[2] = ".bb";

    pat4[0] = "abcc";
    pat4[1] = "abdd";
    pat4[2] = "eegh";
    pat4[3] = "ffgh";

    pat5[0] = "aabbc";
    pat5[1] = "de..c";
    pat5[2] = "de..f";
    pat5[3] = "h.ggf";
    pat5[4] = "hiijj";

    pat7[0] = "aabbcc.";
    pat7[1] = "d..e..f";
    pat7[2] = "d..e..f";
    pat7[3] = ".gg.hhk";
    pat7[4] = "i..j..k";
    pat7[5] = "i..j..n";
    pat7[6] = ".ll.mmn";

    if(N%3 == 0){
        int n3 = N/3;
        int p = 0;
        while(n3--){
            for(int i=0; i<3; i++) for(int j=0; j<3; j++) ans[i+p][j+p] = pat3[i][j];
            p += 3;
        }
    }else{
        int n4, n5, n7;
        bool ok = false;
        for(n4=0; n4<N; n4++){
            for(n5=0; n5<N; n5++){
                int r = N - n4*4 - n5*5;
                if(r >= 0 && r%7 == 0){
                    n7 = r/7;
                    ok = true;
                    break;
                }
            }
            if(ok) break;
        }
        int p = 0;
        while(n4--){
            for(int i=0; i<4; i++) for(int j=0; j<4; j++) ans[i+p][j+p] = pat4[i][j];
            p += 4;
        }
        while(n5--){
            for(int i=0; i<5; i++) for(int j=0; j<5; j++) ans[i+p][j+p] = pat5[i][j];
            p += 5;
        }
        while(n7--){
            for(int i=0; i<7; i++) for(int j=0; j<7; j++) ans[i+p][j+p] = pat7[i][j];
            p += 7;
        }
        assert(p == N);
    }
    for(int i=0; i<N; i++) cout << ans[i] << endl;
    return 0;
}