#include <bits/stdc++.h>
using namespace std;
int main() {
  int K;
  char colorTable[8] = "bw";
  while (cin >> K) {
    if (K & 1)
      cout << -1 << endl;
    else {
      for (int i = 0; i < K; i++) {
        for (int j = 0; j < K; j++) {
          for (int k = 0; k < K; k++) {
            cout << colorTable[(i + j / 2 + k / 2) % 2];
          }
          cout << endl;
        }
        cout << endl;
      }
    }
  }
  return 0;
}
