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 PYTHON3):

Solution:
def search(field, xs, ys, n, q, c, r):
    if r == 0:
        return field
    for i in range(n):
        if xs[i] >= q:
            continue
        can_vertical = i < n - 1 and xs[i + 1] < q
        for j in range(n):
            if ys[j] >= q:
                continue
            if field[i][j] != 0:
                continue
            if can_vertical and field[i + 1][j] == 0:
                field[i][j] = field[i + 1][j] = c
                xs[i] += 1
                xs[i + 1] += 1
                ys[j] += 1
                result = search(field, xs, ys, n, q, c + 1, r - 1)
                if result is not None:
                    return result
                field[i][j] = field[i + 1][j] = 0
                xs[i] -= 1
                xs[i + 1] -= 1
                ys[j] -= 1
            if j < n - 1 and ys[j + 1] < q and field[i][j + 1] == 0:
                field[i][j] = field[i][j + 1] = c
                xs[i] += 1
                ys[j] += 1
                ys[j + 1] += 1
                result = search(field, xs, ys, n, q, c + 1, r - 1)
                if result is not None:
                    return result
                field[i][j] = field[i][j + 1] = 0
                xs[i] -= 1
                ys[j] -= 1
                ys[j + 1] -= 1
    return None


def search_main(n, q=3):
    print(n, q)
    field = [[0] * n for _ in range(n)]
    xs = [0] * n
    ys = [0] * n
    remain = n * 2 * q // 3
    result = search(field, xs, ys, n, q, 1, remain)
    if result is None:
        print(None)
    else:
        for row in result:
            print(' '.join('{:02d}'.format(x) for x in row))


def solve(n):
    if n <= 2:
        print(-1)
        return
    if n == 3:
        print('aab\nc.b\ncdd')
        return
    field = [['.'] * n for _ in range(n)]
    r = n % 4
    repeat = [n, n - 5, n - 6, n - 7]
    for i in range(0, repeat[r], 4):
        field[i + 0][i:i + 4] = list('aacd')
        field[i + 1][i:i + 4] = list('bbcd')
        field[i + 2][i:i + 4] = list('efgg')
        field[i + 3][i:i + 4] = list('efhh')

    if r == 1:
        field[n - 5][n - 5:n] = list('abc..')
        field[n - 4][n - 5:n] = list('abc..')
        field[n - 3][n - 5:n] = list('deeff')
        field[n - 2][n - 5:n] = list('d.ghh')
        field[n - 1][n - 5:n] = list('iigjj')
    elif r == 2:
        field[n - 6][n - 6:n] = list('abc...')
        field[n - 5][n - 6:n] = list('abc...')
        field[n - 4][n - 6:n] = list('d.eeff')
        field[n - 3][n - 6:n] = list('dghh..')
        field[n - 2][n - 6:n] = list('.g.ijj')
        field[n - 1][n - 6:n] = list('kk.ill')
    elif r == 3:
        field[n - 7][n - 7:n] = list('abc....')
        field[n - 6][n - 7:n] = list('abc....')
        field[n - 5][n - 7:n] = list('def....')
        field[n - 4][n - 7:n] = list('def....')
        field[n - 3][n - 7:n] = list('g..hhii')
        field[n - 2][n - 7:n] = list('g..jjkk')
        field[n - 1][n - 7:n] = list('.llmmnn')

    print('\n'.join(map(''.join, field)))


# search_main(4)
# search_main(5)
# search_main(6)
# search_main(7)
n = int(input())
solve(n)