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

Solution:
import java.util.Arrays;
import java.util.Scanner;

/**
 * Domino Quality
 */
public class Main {

    public static void main(String[] args) throws Exception {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();

            if (N == 2) {
                System.out.println(-1);
                return;
            }

            if (N == 3) {
                System.out.println("aa.");
                System.out.println("..a");
                System.out.println("..a");
                return;
            }

            char[][] c = new char[N][N];
            for (int i = 0; i < N; i++) {
                Arrays.fill(c[i], '.');
            }

            int M = N / 4;
            if (N % 4 != 0) {
                M--;
            }

            for (int i = 0; i < M; i++) {
                place4(c, i * 4);
            }

            if (N % 4 == 1) {
                place5(c, M * 4);
            } else if (N % 4 == 2) {
                place6(c, M * 4);
            } else if (N % 4 == 3) {
                place7(c, M * 4);
            }

            StringBuilder ans = new StringBuilder();
            for (int i = 0; i < N; i++) {
                ans.append(c[i]).append("\n");
            }

            System.out.print(ans.toString());
        }
    }

    static void place4(char[][] c, int n) {
        System.arraycopy("aabc".toCharArray(), 0, c[n], n, 4);
        System.arraycopy("ddbc".toCharArray(), 0, c[n + 1], n, 4);
        System.arraycopy("bcaa".toCharArray(), 0, c[n + 2], n, 4);
        System.arraycopy("bcdd".toCharArray(), 0, c[n + 3], n, 4);
    }

    static void place5(char[][] c, int n) {
        System.arraycopy("aabba".toCharArray(), 0, c[n], n, 5);
        System.arraycopy("bcc.a".toCharArray(), 0, c[n + 1], n, 5);
        System.arraycopy("b..cb".toCharArray(), 0, c[n + 2], n, 5);
        System.arraycopy("a..cb".toCharArray(), 0, c[n + 3], n, 5);
        System.arraycopy("abbaa".toCharArray(), 0, c[n + 4], n, 5);
    }

    static void place6(char[][] c, int n) {
        System.arraycopy("aabc..".toCharArray(), 0, c[n], n, 6);
        System.arraycopy("ddbc..".toCharArray(), 0, c[n + 1], n, 6);
        System.arraycopy("..aabc".toCharArray(), 0, c[n + 2], n, 6);
        System.arraycopy("..ddbc".toCharArray(), 0, c[n + 3], n, 6);
        System.arraycopy("bc..aa".toCharArray(), 0, c[n + 4], n, 6);
        System.arraycopy("bc..dd".toCharArray(), 0, c[n + 5], n, 6);
    }

    static void place7(char[][] c, int n) {
        System.arraycopy("aabbcc.".toCharArray(), 0, c[n], n, 7);
        System.arraycopy("dd.dd.a".toCharArray(), 0, c[n + 1], n, 7);
        System.arraycopy("..d..da".toCharArray(), 0, c[n + 2], n, 7);
        System.arraycopy("..d..db".toCharArray(), 0, c[n + 3], n, 7);
        System.arraycopy("dd.dd.b".toCharArray(), 0, c[n + 4], n, 7);
        System.arraycopy("..d..dc".toCharArray(), 0, c[n + 5], n, 7);
        System.arraycopy("..d..dc".toCharArray(), 0, c[n + 6], n, 7);
    }

}