#include <bits/stdc++.h>
using namespace std;
double epsilon = 0.0000001f;
long long mod = 1e9 + 7;
long long Pi = acos(-1);
void print(vector<long long> V) {
  cout << "\n---------------Vector checking start-------------------\n";
  long long sz = V.size();
  for (int i = 0; i < sz; i++) {
    cout << V[i] << "  ";
  }
  cout << "\n----------------Vector checking end--------------------\n";
}
void print(long long arr[], long long n) {
  cout << "\n---------------Array checking start-------------------\n";
  for (int i = 0; i < n; i++) {
    cout << arr[i] << " ";
  }
  cout << "\n----------------Array checking end--------------------\n";
}
int main() {
  {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
  }
  long long testCase = 1;
  while (testCase--) {
    long long n, m, k, x, y, z, a, b, c, d, mn, mx, temp, cnt, ans, sum, sz,
        len;
    cin >> n;
    char ch, ch2;
    for (int i = 0; i < n; i++) {
      if (i % 2 == 0) {
        ch = 'W', ch2 = 'B';
      } else {
        ch = 'B', ch2 = 'W';
      }
      for (int j = 0; j < n; j++) {
        cout << ch;
        j++;
        if (j < n) cout << ch2;
      }
      cout << "\n";
    }
    cout << "\n";
  }
  return 0;
}
