#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f, maxn = 100001;
int main() {
  int k;
  while (~scanf("%d", &k)) {
    if (k & 1)
      printf("-1\n");
    else {
      char B = 'b', W = 'w';
      for (int x = 0; x < k; x++) {
        for (int y = 0; y < k; y++) {
          for (int z = 0; z < k; z++)
            if ((y / 2 + z / 2) & 1)
              printf("%c", B);
            else
              printf("%c", W);
          printf("\n");
        }
        printf("\n");
        swap(B, W);
      }
    }
  }
  return 0;
}
