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