#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k;
  char c[2] = {'w', 'b'};
  bool b = 1;
  cin >> n;
  if (n % 2 == 0) {
    for (i = 1; i <= n; i++) {
      if (i % 2 == 1) {
        b = 1;
      } else {
        b = 0;
      }
      for (j = 1; j <= n / 2; j++) {
        if (n % 4 == 0) {
          b = !b;
        }
        for (k = 1; k <= n / 2; k++) {
          cout << c[b] << c[b];
          b = !b;
        }
        cout << endl;
        if (n % 4 == 2) {
          b = !b;
        }
        for (k = 1; k <= n / 2; k++) {
          cout << c[b] << c[b];
          b = !b;
        }
        cout << endl;
      }
      cout << endl;
    }
  } else {
    cout << -1 << endl;
  }
  return 0;
}
