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