#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    if (i & 1)
      for (int j = 0; j < n; ++j) j & 1 ? cout << "B" : cout << "W";
    else
      for (int j = 0; j < n; ++j) j & 1 ? cout << "W" : cout << "B";
    cout << "\n";
  }
  return 0;
}
