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