Problem: You are given a cube of size k × k × k, which consists of unit cubes. Two unit cubes are considered neighbouring, if they have common face.

Your task is to paint each of k3 unit cubes one of two colours (black or white), so that the following conditions must be satisfied:

  * each white cube has exactly 2 neighbouring cubes of white color; 
  * each black cube has exactly 2 neighbouring cubes of black color. 

Input

The first line contains integer k (1 ≤ k ≤ 100), which is size of the cube.

Output

Print -1 if there is no solution. Otherwise, print the required painting of the cube consequently by layers. Print a k × k matrix in the first k lines, showing how the first layer of the cube should be painted. In the following k lines print a k × k matrix — the way the second layer should be painted. And so on to the last k-th layer. Note that orientation of the cube in the space does not matter.

Mark a white unit cube with symbol "w" and a black one with "b". Use the format of output data, given in the test samples. You may print extra empty lines, they will be ignored.

Examples

Input

1


Output

-1


Input

2


Output

bb
ww

bb
ww

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.StringTokenizer;


public class A {
    
    static StringTokenizer st;
    static BufferedReader in;
    static PrintWriter pw;
    
    public static void main(String[] args) throws IOException {
        in = new BufferedReader(new InputStreamReader(System.in));
        pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
        int n = nextInt();
        if (n % 2==1) {
            System.out.println(-1);
            return;
        }
        for (int i = 1; i <= n; i++) {
            char[][]a = new char[n+1][n+1];
            char w1 = 'b', w2 = 'w';
            if (i % 2==0) {
                w1 = 'w';
                w2 = 'b';
            }
            for (int j = 1; j <= n-1; j += 2) {
                for (int j2 = 1; j2 <= n-1; j2 += 2) {
                    if (j % 4==j2 % 4) {
                        a[j][j2] = a[j][j2+1] = a[j+1][j2] = a[j+1][j2+1] = w1;
                    }
                    else
                        a[j][j2] = a[j][j2+1] = a[j+1][j2] = a[j+1][j2+1] = w2;
                }
            }
            for (int j = 1; j <= n; j++) {
                for (int j2 = 1; j2 <= n; j2++) {
                    pw.print(a[j][j2]);
                }
                pw.println();
            }
            pw.println();
        }
//      int[]dx = {1, -1, 0, 0, 0, 0};
//      int[]dy = {0, 0, 0, 0, 1, -1};
//      int[]dz = {0, 0, 1, -1, 0, 0};
//      int t = n*n*n;
//      for (int i = 0; i < (1 << t); i++) {
//          int[][][]a = new int[n+1][n+1][n+1];
//          int xx = 1, yy = 1, zz = 0;
//          for (int j = 0; j < t; j++) {
//              zz++;
//              if (zz==n+1) {
//                  yy++;
//                  zz = 1;
//                  if (yy==n+1) {
//                      yy = 1;
//                      xx++;
//                  }
//              }
//              if ((i & (1 << j)) != 0)
//                  a[xx][yy][zz] = 1;
//          }
//          boolean f = true;
//A:            for (int j = 1; j <= n; j++) {
//              for (int j2 = 1; j2 <= n; j2++) {
//                  for (int k = 1; k <= n; k++) {
//                      int cnt = 0;
//                      for (int j3 = 0; j3 < 6; j3++) {
//                          int jj = j+dx[j3], j2j2 = j2+dy[j3], kk = k+dz[j3];
//                          if (jj >= 1 && jj <= n && j2j2 >= 1 && j2j2 <= n && kk >= 1 && kk <= n) {
//                              if (a[jj][j2j2][kk]==a[j][j2][k])
//                                  cnt++;
//                          }
//                      }
//                      if (cnt!=2) {
//                          f = false;
//                          break A;
//                      }
//                  }
//              }
//          }
//          if (f) {
//              System.out.println("GG");
//              return;
//          }
//      }
        pw.close();
    }
    private static int nextInt() throws IOException{
        return Integer.parseInt(next());
    }
    
    private static long nextLong() throws IOException{
        return Long.parseLong(next());
    }
    
    private static double nextDouble() throws IOException{
        return Double.parseDouble(next());
    }
    
    private static String next() throws IOException {
        while (st == null || !st.hasMoreTokens()) {
            st = new StringTokenizer(in.readLine());
        }
        return st.nextToken();
    }
}