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:
#pragma GCC optimize("Ofast,inline,unroll-loops,fast-math")
#include <iostream>
#include <algorithm>
#include <cstdio>
#define N 1020
using namespace std;

const int d[4][2] = 
{
    {0, 1},
    {1, 0},
    {-1, 0},
    {0, -1},
};

int n;
char a[N][N];

void Place(int x, int y, int p, int q)
{
    bool u[26] = { 0 };
    int i, s, t;

    for(i = 0; i < 4; i ++)
    {
        s = x + d[i][0];
        t = y + d[i][1];
        if(s > -1 && t > -1 && s < n && t < n && a[s][t] != '.')
            u[a[s][t] - 97] = true;

        s = p + d[i][0];
        t = q + d[i][1];
        if(s > -1 && t > -1 && s < n && t < n && a[s][t] != '.')
            u[a[s][t] - 97] = true;
    }

    for(i = 0; i < 26; i ++)
        if(!u[i])
            break;
    a[x][y] = a[p][q] = i + 97;

    return;
}

int main(void)
{
    int i, j;

    scanf("%d", &n);
    if(n == 2)
    {
        printf("-1\n");

        return 0;
    }

    for(i = 0; i < n; i ++)
        for(j = 0; j < n; j ++)
            a[i][j] = '.';
    if(n == 4)
    {
        Place(0, 0, 0, 1);
        Place(1, 0, 1, 1);
        Place(0, 2, 1, 2);
        Place(0, 3, 1, 3);
        Place(2, 2, 2, 3);
        Place(3, 2, 3, 3);
        Place(2, 0, 3, 0);
        Place(2, 1, 3, 1);
    }
    else
    {
        Place(0, 0, 0, 1);
        Place(n - 1, n - 1, n - 2, n - 1);
        for(i = 0; i < n - 2; i ++)
            Place(n - 2 - i, i, n - 2 - i - 1, i);
        for(i = 0; i < n - 3; i ++)
            Place(n - 3 - i, i + 2, n - 3 - i, i + 3);
        Place(0, n - 1, 0, n - 2);
        Place(n - 1, 0, n - 1, 1);
        Place(n - 1, 2, n - 2, 2);
    }

    for(i = 0; i < n; i ++)
        puts(a[i]);

    return 0;
}