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

Solution:
#include <vector>
#include <iostream>
#include <cassert>
using namespace std;

int main(){
  int N;
  cin >> N;
  if(N == 2){
    cout << -1 << endl;
    return 0;
  }

  vector<string> A(N,string(N,'.'));
  
  vector<string> P3 = {"abb","a.d","ccd"};
  vector<string> P5 = {"abbcc",
                       "ad..f",
                       "bd..f",
                       "b.aae",
                       "ccdde"};
  vector<string> P4 = {"aabc",
                       "ddbc",
                       "efgg",
                       "efhh"};

  if(N%3 == 0 or N == 7){

    for(int i = 0; i < N/3; ++i){
      for(int j = 0; j < 3; ++j){
        for(int k = 0; k < 3; ++k){
          A[3*i+j][3*i+k] = P3[j][k];
        }
      }
    }
  }else if(N == 11){
    for(int i = 0; i < 2; ++i){
      for(int j = 0; j < 3; ++j){
        for(int k = 0; k < 3; ++k){
          A[3*i+j][3*i+k] = P3[j][k];
        }
      }
    }

    for(int j = 0; j < 4; ++j){
      for(int k = 0; k < 4; ++k){
        A[7+j][7+k] = P4[j][k];
      }
    }
  }else{
    int y = N%4;
    for(int t = 0; t < y; ++t){
      for(int i = 0; i < 5; ++i){
        for(int j = 0; j < 5; ++j){
          A[N-5+i][N-5+j] = P5[i][j];
        }
      }
      N -= 5;
    }
    for(int i = 0; i < N/4; ++i){
      for(int j = 0; j < 4; ++j){
        for(int k = 0; k < 4; ++k){
          A[4*i+j][4*i+k] = P4[j][k];
        }
      }
    }
  }
  if(N == 7 or N == 11){
    string tmp = "xxyyzz.";
    for(int i = 0; i < 7; ++i){
      A[i][6] = tmp[i];
      A[6][i] = tmp[i];
    }
  }
  for(auto a : A){
    cout << a << endl;
  }
}