#include <bits/stdc++.h>
using namespace std;
const int maxn = 5e5 + 5;
const int inf = 0x3f3f3f3f;
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (i & 1) {
        if (j & 1)
          cout << "B";
        else
          cout << "W";
      } else {
        if (j & 1)
          cout << "W";
        else
          cout << "B";
      }
    }
    cout << "\n";
  }
  return 0;
}
