#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n + 1][n + 1];
  int t, f = -1;
  for (int i = 1; i <= n; i++) {
    t = f;
    for (int j = 1; j <= n; j++) {
      a[i][j] = t;
      t = -t;
    }
    f = -f;
  }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      if (a[i][j] == 1) {
        cout << "W";
      } else {
        cout << "B";
      }
    }
    cout << endl;
  }
}
