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