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

Solution:
def main():
    n = int(raw_input())
    if n == 2:
        print -1
    elif n == 3 or n == 6:
        ans = [list('.' * n) for _ in xrange(n)]
        c = 0
        for i in xrange(n / 3):
            ans[c][c] = ans[c][c+1] = 'a'
            ans[c+1][c] = ans[c+2][c] = 'b'
            ans[c+2][c+1] = ans[c+2][c+2] = 'c'
            ans[c][c+2] = ans[c+1][c+2] = 'd'
            c += 3
        for l in ans:
            print ''.join(l)
    elif n == 7 or n == 11:
        ans = [list('.' * n) for _ in xrange(n)]
        ans[0][0] = ans[0][1] = 'a'
        ans[0][2] = ans[0][3] = 'b'
        ans[1][0] = ans[1][1] = 'c'
        ans[1][2] = ans[1][3] = 'd'
        ans[0][4] = ans[1][4] = 'e'
        ans[2][1] = ans[2][2] = 'f'
        ans[2][3] = ans[2][4] = 'g'
        ans[2][5] = ans[2][6] = 'h'
        ans[3][4] = ans[4][4] = 'i'
        ans[3][5] = ans[4][5] = 'j'
        ans[3][6] = ans[4][6] = 'k'
        ans[5][0] = ans[6][0] = 'l'
        ans[5][5] = ans[6][5] = 'm'
        ans[5][6] = ans[6][6] = 'n'
        c = 7
        if n == 11:
            ans[c][c] = ans[c][c+1] = 'a'
            ans[c+1][c] = ans[c+1][c+1] = 'b'
            ans[c][c+2] = ans[c+1][c+2] = 'c'
            ans[c][c+3] = ans[c+1][c+3] = 'd'
            ans[c+2][c] = ans[c+3][c] = 'e'
            ans[c+2][c+1] = ans[c+3][c+1] = 'f'
            ans[c+2][c+2] = ans[c+2][c+3] = 'g'
            ans[c+3][c+2] = ans[c+3][c+3] = 'h'
        for l in ans:
            print ''.join(l)
    else:
        s = t = 0
        for i in xrange(1000):
            if (n - 4 * i) % 5 == 0:
                s = i
                t = (n - 4 * i) / 5
                break
        c = 0
        ans = [list('.' * n) for _ in xrange(n)]
        for i in xrange(s):
            ans[c][c] = ans[c][c+1] = 'a'
            ans[c+1][c] = ans[c+1][c+1] = 'b'
            ans[c][c+2] = ans[c+1][c+2] = 'c'
            ans[c][c+3] = ans[c+1][c+3] = 'd'
            ans[c+2][c] = ans[c+3][c] = 'e'
            ans[c+2][c+1] = ans[c+3][c+1] = 'f'
            ans[c+2][c+2] = ans[c+2][c+3] = 'g'
            ans[c+3][c+2] = ans[c+3][c+3] = 'h'
            c += 4
        for i in xrange(t):
            ans[c][c] = ans[c][c+1] = 'a'
            ans[c+1][c] = ans[c+2][c] = 'b'
            ans[c+2][c+1] = ans[c+2][c+2] = 'c'
            ans[c][c+2] = ans[c+1][c+2] = 'd'
            ans[c][c+3] = ans[c][c+4] = 'e'
            ans[c+1][c+3] = ans[c+1][c+4] = 'f'
            ans[c+2][c+3] = ans[c+2][c+4] = 'g'
            ans[c+3][c] = ans[c+4][c] = 'h'
            ans[c+3][c+1] = ans[c+4][c+1] = 'i'
            ans[c+3][c+2] = ans[c+4][c+2] = 'j'
            c += 5
        for l in ans:
            print ''.join(l)
main()