#include <bits/stdc++.h>
using namespace std;
void deepshit() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int32_t main() {
  deepshit();
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    if (i % 2 == 0) {
      for (long long j = 0; j < n; j++) {
        if (j % 2 == 0)
          cout << "W";
        else
          cout << "B";
      }
    } else {
      for (long long j = 0; j < n; j++) {
        if (j % 2 == 0)
          cout << "B";
        else
          cout << "W";
      }
    }
    cout << "\n";
  }
  return 0;
}
