#include <bits/stdc++.h>
using namespace std;
int n;
void solve() {
  for (int i = 1; i <= n;) {
    for (int j = 1; j <= n; j++) cout << ((j % 2 == 0) ? "W" : "B");
    cout << endl;
    i++;
    if (i <= n) {
      for (int j = 1; j <= n; j++) cout << ((j % 2 == 0) ? "B" : "W");
      cout << endl;
      i++;
    }
  }
}
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  auto start_time = chrono::high_resolution_clock::now();
  cin >> n;
  solve();
  auto end_time = chrono::high_resolution_clock::now();
}
