#include <bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
struct fast_ios {
  fast_ios() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  };
} fast_ios_;
int main() {
  int N;
  cin >> N;
  for (int i = (0), i_end_ = (N); i < i_end_; i++) {
    for (int j = (0), j_end_ = (N); j < j_end_; j++) {
      if ((i + j) % 2)
        printf("W");
      else
        printf("B");
    }
    puts("");
  }
}
