#include <bits/stdc++.h>
const long long mod = 1E9 + 7;
const int MAXN = 1E5 + 10;
const int INF = ~0U >> 1;
int input() {
  int x;
  scanf("%d", &x);
  return x;
}
int doing() {
  int n = input();
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      printf((i + j) % 2 == 0 ? "W" : "B");
    }
    printf("\n");
  }
  return 0;
}
int main() {
  doing();
  return 0;
}
