#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  if (n % 2 == 1) {
    cout << -1 << endl;
  } else {
    for (int x = 0; x < n; x++) {
      for (int y = 0; y < n; y++) {
        for (int z = 0; z < n; z++) {
          if ((min(min(y, z), min(n - y - 1, n - z - 1)) + x) % 2 == 0) {
            cout << "b";
          } else {
            cout << "w";
          }
        }
        cout << endl;
      }
      cout << endl;
    }
  }
}
