#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<char> cells = {'W', 'B'};
  int index = 0;
  for (int i = 0; i < n; i++) {
    index = i % 2;
    for (int j = 0; j < n; j++) {
      cout << cells[index];
      index = (index + 1) % 2;
    }
    cout << endl;
  }
  return 0;
}
