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