#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  if (k % 2 != 0)
    cout << -1;
  else {
    for (int i = 0; i < k; ++i) {
      for (int j = 0; j < k; ++j) {
        for (int l = 0; l < k; ++l) {
          if (i % 2 == 0) {
            if ((j % 4 < 2) == (l % 4 < 2))
              cout << "w";
            else
              cout << "b";
          } else {
            if ((j % 4 < 2) == (l % 4 < 2))
              cout << "b";
            else
              cout << "w";
          }
        }
        cout << "\n";
      }
    }
  }
}
