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.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;
            }

            StringBuilder ans = new StringBuilder();

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

            for (int i = 0; i < M; i++) {
                StringBuilder[] sb = new StringBuilder[4];
                for (int j = 0; j < sb.length; j++) {
                    sb[j] = new StringBuilder();
                }

                for (int j = 0; j < i; j++) {
                    blank4(sb);
                }
                place4(sb);
                for (int j = i + 1; j < M; j++) {
                    blank4(sb);
                }

                if (N % 4 == 1) {
                    blank5(sb);
                } else if (N % 4 == 2) {
                    blank6(sb);
                } else if (N % 4 == 3) {
                    blank7(sb);
                }

                for (int j = 0; j < sb.length; j++) {
                    ans.append(sb[j]).append("\n");
                }
            }

            if (N % 4 != 0) {
                StringBuilder[] sb = new StringBuilder[N % 4 + 4];
                for (int j = 0; j < sb.length; j++) {
                    sb[j] = new StringBuilder();
                }

                for (int j = 0; j < M; j++) {
                    blank4(sb);
                }

                if (N % 4 == 1) {
                    place5(sb);
                } else if (N % 4 == 2) {
                    place6(sb);
                } else if (N % 4 == 3) {
                    place7(sb);
                }

                for (int j = 0; j < sb.length; j++) {
                    ans.append(sb[j]).append("\n");
                }
            }

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

    static void place4(StringBuilder[] sb) {
        sb[0].append("aabc");
        sb[1].append("ddbc");
        sb[2].append("bcaa");
        sb[3].append("bcdd");
    }

    static void place5(StringBuilder[] sb) {
        sb[0].append("aabba");
        sb[1].append("bcc.a");
        sb[2].append("b..cb");
        sb[3].append("a..cb");
        sb[4].append("abbaa");
    }

    static void place6(StringBuilder[] sb) {
        sb[0].append("aabc..");
        sb[1].append("ddbc..");
        sb[2].append("..aabc");
        sb[3].append("..ddbc");
        sb[4].append("bc..aa");
        sb[5].append("bc..dd");
    }

    static void place7(StringBuilder[] sb) {
        sb[0].append("aabbcc.");
        sb[1].append("dd.dd.a");
        sb[2].append("..d..da");
        sb[3].append("..d..db");
        sb[4].append("dd.dd.b");
        sb[5].append("..d..dc");
        sb[6].append("..d..dc");
    }

    static void blank4(StringBuilder[] sb) {
        for (int i = 0; i < sb.length; i++) {
            sb[i].append("....");
        }
    }

    static void blank5(StringBuilder[] sb) {
        for (int i = 0; i < sb.length; i++) {
            sb[i].append(".....");
        }
    }

    static void blank6(StringBuilder[] sb) {
        for (int i = 0; i < sb.length; i++) {
            sb[i].append("......");
        }
    }

    static void blank7(StringBuilder[] sb) {
        for (int i = 0; i < sb.length; i++) {
            sb[i].append(".......");
        }
    }

}