#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string t = "";
  for (int i = 0; i < n; i++) t += 'x';
  vector<string> a(n, t);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (i % 2 == j % 2)
        a[i][j] = 'B';
      else
        a[i][j] = 'W';
    }
  }
  for (int i = 0; i < n; i++) {
    cout << a[i] << "\n";
  }
}
