#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)1e5 + 10;
;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  char num[] = {'w', 'b'};
  int n;
  cin >> n;
  if (n & 1) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      for (int k = 0; k < n; k++) {
        cout << num[(i + (j % 4 < 2) + (k % 4 < 2)) & 1];
      }
      cout << endl;
    }
    cout << endl;
  }
}
