#include <bits/stdc++.h>
using namespace std;
int k;
int main() {
  cin >> k;
  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; l++) {
        int res = 0;
        if (((j + 1) / 2 + (l + 1) / 2) % 2 == 0) res = 1;
        if (i % 2 == 0) res = (res + 1) % 2;
        if (res == 0)
          cout << "w";
        else
          cout << "b";
      }
      cout << endl;
    }
    cout << endl;
  }
  return 0;
}
