#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  bool switcher = false, start = true;
  for (int i = 0; i < n; i++) {
    switcher = start;
    start ^= 1;
    for (int j = 0; j < n; j++) {
      switcher ^= 1;
      if (switcher == 1)
        cout << "W";
      else
        cout << "B";
    }
    cout << endl;
  }
  cout << endl;
  return 0;
}
