#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  if (n % 2 == 1) {
    printf("-1\n");
    return 0;
  }
  char start_layer = 'b';
  for (int i = 0; i < n; i++) {
    char start_line = start_layer;
    for (int j = 0; j < n / 2; j++) {
      for (int d = 0; d < 2; d++) {
        char cur = start_line;
        for (int k = 0; k < n / 2; k++) {
          printf("%c%c", cur, cur);
          cur = 'b' + 'w' - cur;
        }
        printf("\n");
      }
      start_line = 'w' + 'b' - start_line;
    }
    start_layer = 'w' + 'b' - start_layer;
    printf("\n");
  }
  return 0;
}
