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