#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  string t[2] = {"bb", "ww"};
  if (n % 2 == 1)
    cout << -1;
  else {
    for (int k = 1; k <= n; k++) {
      for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= n / 2; j++) cout << t[(i + j) % 2];
        cout << endl;
      }
      if (k % 2 == 0) swap(t[0], t[1]);
      cout << endl;
    }
  }
}
