#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  char arr[n][n];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) arr[i][j] = '0';
  arr[0][0] = 'W';
  vector<pair<int, int>> v;
  v.push_back({0, 0});
  vector<pair<int, int>> s;
  while (!v.empty()) {
    int a[] = {2, 1, -1, -2, -2, -1, 1, 2};
    int b[] = {1, 2, 2, 1, -1, -2, -2, -1};
    for (int i = 0; i < v.size(); i++) {
      int e = v[i].first;
      int f = v[i].second;
      char c = arr[e][f];
      for (int j = 0; j < 8; j++) {
        int p = e + a[j];
        int q = f + b[j];
        if (p < n && p >= 0 && q < n && q >= 0 && arr[p][q] == '0') {
          if (c == 'W')
            arr[p][q] = 'B';
          else
            arr[p][q] = 'W';
          s.push_back({p, q});
        }
      }
    }
    v = s;
    s.clear();
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (arr[i][j] == '0')
        cout << 'B';
      else
        cout << arr[i][j];
    }
    cout << endl;
  }
  return 0;
}
