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