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

Solution:
#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
istream& operator>>(istream& in, pair<T1, T2>& a) {
  in >> a.first >> a.second;
  return in;
}
template <typename T1, typename T2>
ostream& operator<<(ostream& out, pair<T1, T2> a) {
  out << a.first << " " << a.second;
  return out;
}
template <typename T, typename T1>
T maxs(T& a, T1 b) {
  if (b > a) a = b;
  return a;
}
template <typename T, typename T1>
T mins(T& a, T1 b) {
  if (b < a) a = b;
  return a;
}
long long solve() {
  long long n;
  cin >> n;
  if (n & 1) {
    cout << -1 << "\n";
    return 0;
  }
  vector<char> a(n + 1);
  vector<char> b(n + 1);
  for (long long i = 1; i <= n; i++) {
    if (i % 4 == 1 || i % 4 == 2)
      a[i] = 'w', b[i] = 'b';
    else
      a[i] = 'b', b[i] = 'w';
  }
  auto p = [&](long long first) {
    if (first == 0) {
      for (long long i = 1; i <= n; i++) cout << a[i];
    } else {
      for (long long i = 1; i <= n; i++) cout << b[i];
    }
    cout << "\n";
  };
  for (long long i = 1; i <= n; i += 2) {
    if (i % 4 == 1 || i % 4 == 2) {
      for (long long k = 0; k <= 1; k++) {
        for (long long z = 1; z <= n; z++) p(z % 2);
        cout << "\n";
      }
    } else {
      for (long long k = 0; k <= 1; k++) {
        for (long long z = 1; z <= n; z++) p(1 - z % 2);
        cout << "\n";
      }
    }
  }
  return 0;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}