#include <bits/stdc++.h>
using namespace std;
bool Sqrt(long long n) { return (long long)sqrt(n) * sqrt(n) == n; }
const double PI = acos(-1.0), ESP = 1e-10;
const long long INF = 99999999999999;
const int inf = 999999999;
int n;
int main() {
  while (scanf("%d", &n) == 1) {
    for (int i = 1; i <= n; i++, puts("")) {
      for (int j = 1; j <= n; j++) putchar(((i + j) & 1) ? 'B' : 'W');
    }
  }
  return 0;
}
