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