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