#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, n;
  cin >> n;
  char *p, *q, *b, *w;
  b = "bb";
  w = "ww";
  p = (char *)malloc((n + 1) * sizeof(char));
  p[0] = '\0';
  q = (char *)malloc((n + 1) * sizeof(char));
  q[0] = '\0';
  i = n / 2;
  j = 0;
  while (i--) {
    if (i % 2 == 0) {
      strcat(p, b);
      strcat(q, w);
    } else {
      strcat(p, w);
      strcat(q, b);
    }
  }
  if (n % 2 != 0) {
    cout << "-1";
  } else {
    for (i = 0; i < n; i++) {
      for (j = 0; j < n / 2; j++) {
        if (i % 2 == 0) {
          if (j % 2 == 0) {
            cout << p << "\n";
            cout << p << "\n";
          } else {
            cout << q << "\n";
            cout << q << "\n";
          }
        } else {
          if (j % 2 == 0) {
            cout << q << "\n";
            cout << q << "\n";
          } else {
            cout << p << "\n";
            cout << p << "\n";
          }
        }
      }
      cout << "\n";
    }
  }
}
