#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  cin >> k;
  if (k & 1)
    cout << -1;
  else {
    string s1 = "ww", s2 = "bb", a, b;
    for (int i = 0; i < k / 2; ++i) {
      if (i & 1) {
        a += s1;
        b += s2;
      } else {
        a += s2;
        b += s1;
      }
    }
    bool ok = true;
    for (int j = 0; j < k; ++j) {
      ++j;
      for (int i = 0; i < k; ++i) {
        if (ok) {
          if (i & 1)
            cout << a << endl;
          else
            cout << b << endl;
        } else {
          if (i & 1)
            cout << b << endl;
          else
            cout << a << endl;
        }
      }
      cout << endl;
      for (int i = 0; i < k; ++i) {
        if (ok) {
          if (i & 1)
            cout << a << endl;
          else
            cout << b << endl;
        } else {
          if (i & 1)
            cout << b << endl;
          else
            cout << a << endl;
        }
      }
      ok = !ok;
      cout << endl;
    }
  }
  return 0;
}
