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