#include <bits/stdc++.h>
using namespace std;
template <class T>
bool inside(T a, T b, T c) {
  return a <= b && b <= c;
}
int main() {
  ios_base::sync_with_stdio(false);
  ;
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n;
  cin >> n;
  if (n & 1) {
    cout << "-1\n";
  } else
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        for (int k = 0; k < n; k++) {
          int c = 0;
          int n1 = j / 2, n2 = k / 2;
          if ((n1 + n2) & 1) {
            c = 1;
          } else {
            c = 0;
          }
          if (i & 1) {
            c ^= 1;
          }
          if (c) {
            cout << "b";
          } else
            cout << "w";
        }
        cout << '\n';
      }
      cout << '\n';
    }
  return 0;
}
