#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = (long long)1e9 + 5;
int N;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> N;
  for (int i = 0; i < N; i++) {
    for (int j = 0; j < N; j++) {
      if ((i + j) % 2) {
        cout << "W";
      } else {
        cout << "B";
      }
    }
    cout << "\n";
  }
  return 0;
}
