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:
import sys
from collections import defaultdict
readline = sys.stdin.buffer.readline
#sys.setrecursionlimit(10**8)


def geta(fn=lambda s: s.decode()):
    return map(fn, readline().split())


def gete(fn=lambda s: s.decode()):
    return fn(readline().rstrip())


def main():
    N = gete(int)

    g = [["."] * N for _ in range(N)]

    d = dict()

    d[(3, 1)] = (".zz", "z..", "z..")
    d[(3, 2)] = ("aab", "b.b", "baa")
    d[(4, 3)] = ("aaba", "ccba", "abcc", "abaa")
    d[(5, 3)] = ("aabbc", "bc..c", "bc..b", "a.ccb", "abbaa")

    if N == 2:
        print(-1)
        return
    elif N == 3:
        for i in range(3):
            for j in range(3):
                g[i][j] = d[(3, 1)][i][j]
    elif N & 1 == 0:
        # N >= 4 and N even.
        # N = 2*(3*m + 2*n)
        n, m = 0, 0
        while 6 * m <= N:
            if (N - 6 * m) % 4 == 0:
                n = (N - 6 * m) // 4
                break
            m += 1
        # TODO: display
        for k in range(m):
            for i in range(3):
                for j in range(3):
                    g[6 * k + i][6 * k + j] = d[(3, 1)][i][j]
                    g[6 * k + 3 + i][6 * k + 3 + j] = d[(3, 1)][i][j]
                    g[6 * k + i][6 * k + 3 + j] = d[(3, 2)][i][j]
                    g[6 * k + 3 + i][6 * k + j] = d[(3, 2)][i][j]
        for k in range(n):
            for i in range(4):
                for j in range(4):
                    g[6 * m + 4 * k + i][6 * m + 4 * k + j] = d[(4, 3)][i][j]

    elif N == 7:
        # TODO: display
        _s = "aabbcc."
        for i in range(N):
            g[i][6] = _s[i]
            g[6][i] = _s[i]
        for k in range(2):
            for l in range(2):
                for i in range(3):
                    for j in range(3):
                        g[3 * k + i][3 * l + j] = d[(3, 1)][i][j]

    elif N == 11:
        # TODO: display
        for k in range(1):
            for i in range(3):
                for j in range(3):
                    g[6 * k + i][6 * k + j] = d[(3, 1)][i][j]
                    g[6 * k + 3 + i][6 * k + 3 + j] = d[(3, 1)][i][j]
                    g[6 * k + i][6 * k + 3 + j] = d[(3, 2)][i][j]
                    g[6 * k + 3 + i][6 * k + j] = d[(3, 2)][i][j]
        for k in range(1):
            for i in range(5):
                for j in range(5):
                    g[6 + i][6 + j] = d[(5, 3)][i][j]

    else:
        # N != 7, 11 and even
        # N = 5*m + 4*n
        n, m = 0, 0
        while 5 * m <= N:
            if (N - 5 * m) % 4 == 0:
                n = (N - 5 * m) // 4
                break
            m += 1
        # TODO: display
        for k in range(m):
            for i in range(5):
                for j in range(5):
                    g[5 * k + i][5 * k + j] = d[(5, 3)][i][j]
        for k in range(n):
            for i in range(4):
                for j in range(4):
                    g[5 * m + 4 * k + i][5 * m + 4 * k + j] = d[(4, 3)][i][j]

    print(*["".join(g[i]) for i in range(N)], sep="\n")


if __name__ == "__main__":
    main()