#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, m, sl, t;
  cin >> k;
  if (k % 2 == 1)
    cout << -1 << endl;
  else {
    for (sl = 0; sl < k; sl++) {
      cout << endl;
      for (i = 0; i < k; i++, cout << endl)
        for (j = 0; j < k; j++) {
          t = min(i, j);
          t = min(t, k - 1 - i);
          t = min(t, k - 1 - j);
          if ((t % 2 ^ sl % 2 == 0) == 0)
            cout << "b";
          else
            cout << "w";
        }
    }
  }
  return 0;
}
