#include <bits/stdc++.h>
using namespace std;
int K;
bool Map[100][100];
int main() {
  scanf("%d", &K);
  if (K & 1)
    puts("-1");
  else {
    for (int i = 0; i < K; i += 2)
      for (int j = i % 4; j < K; j += 4) {
        Map[i][j] = true;
        Map[i][j + 1] = true;
        Map[i + 1][j] = true;
        Map[i + 1][j + 1] = true;
      }
    for (int k = 0; k < K; ++k) {
      bool flag = k & 1;
      for (int i = 0; i < K; ++i) {
        for (int j = 0; j < K; ++j) {
          if (Map[i][j] ^ flag)
            printf("b");
          else
            printf("w");
        }
        printf("\n");
      }
      printf("\n");
    }
  }
  return 0;
}
