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")

    def fill(si, sj, b):
        nb = len(b)
        for i in range(nb):
            for j in range(nb):
                g[si + i][sj + j] = b[i][j]

    if N <= 2:
        print(-1)
        return
    elif N == 3:
        fill(0, 0, d[(3, 1)])
    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
        for k in range(m):
            fill(6 * k, 6 * k, d[(3, 1)])
            fill(6 * k + 3, 6 * k + 3, d[(3, 1)])
            fill(6 * k, 6 * k + 3, d[(3, 2)])
            fill(6 * k + 3, 6 * k, d[(3, 2)])
        for k in range(n):
            fill(6 * m + 4 * k, 6 * m + 4 * k, d[(4, 3)])

    elif N == 7:
        _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):
                fill(3 * k, 3 * l, d[(3, 1)])

    elif N == 11:
        fill(0, 0, d[(3, 1)])
        fill(3, 3, d[(3, 1)])
        fill(3, 0, d[(3, 2)])
        fill(0, 3, d[(3, 2)])

        fill(6, 6, d[(5, 3)])

    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

        for k in range(m):
            fill(5 * k, 5 * k, d[(5, 3)])
        for k in range(n):
            fill(5 * m + 4 * k, 5 * m + 4 * k, d[(4, 3)])

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


if __name__ == "__main__":
    main()