#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n & 1) {
    cout << -1;
    return 0;
  }
  if (n < 3) {
    cout << "bb\nww\n\nbb\nww";
    return 0;
  }
  string s1, s2;
  for (int i = 0; i < 110; i++) s1 += (i % 4 < 2) ? "w" : "b";
  s2 = s1.substr(2);
  s1 = s1.substr(0, n);
  s2 = s2.substr(0, n);
  for (int i = 0; i < n; i++) {
    int x = i & 1;
    for (int j = 0; j < n; j++) {
      int y = (j % 4) < 2 ? 1 : 0;
      if (x ^ y)
        cout << s1 << "\n";
      else
        cout << s2 << "\n";
    }
    cout << "\n";
  }
}
