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