#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int k;
  cin >> k;
  if (k & 1) return cout << "-1\n", 0;
  bool ch = true;
  for (int i = 0; i < k; ++i) {
    if (!(i & 1)) ch = !ch;
    for (int j = 0; j < k; ++j) {
      for (int l = 0; l < k; ++l) {
        if (!(l & 1)) ch = !ch;
        cout << (ch ? 'b' : 'w');
      }
      if (k % 4 == 0) ch = !ch;
      cout << '\n';
    }
    cout << '\n';
  }
}
