#include <bits/stdc++.h>
using namespace std;
template <class c>
struct rge {
  c b, e;
};
template <class c>
rge<c> range(c i, c j) {
  return rge<c>{i, j};
}
template <class c>
auto dud(c* x) -> decltype(cerr << *x, 0);
template <class c>
char dud(...);
struct debug {
  template <class c>
  debug& operator<<(const c&) {
    return *this;
  }
};
const double pi = acosl(-1);
void solve() {
  long long n;
  cin >> n;
  vector<vector<long long>> ans(n, vector<long long>(n));
  for (long long i = 0; i < n; i++) {
    if (i % 2 == 0) {
      for (long long j = 0; j < n; j += 2) {
        ans[i][j] = 1;
      }
    } else {
      for (long long j = 1; j < n; j += 2) {
        ans[i][j] = 1;
      }
    }
  }
  for (long long i = 0; i < (n); i++) {
    for (long long j = 0; j < (n); j++) {
      if (ans[i][j]) {
        cout << "W";
      } else {
        cout << "B";
      }
    }
    cout << '\n';
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long tt = 1;
  while (tt--) {
    solve();
  }
}
