#include <bits/stdc++.h>
using namespace std;
long long int c = 1e9 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long int n;
  cin >> n;
  char a[n + 2][n + 2];
  for (long long int i = 0; i < n; i++) {
    long long int p = i % 2;
    for (long long int j = 0; j < n; j++) {
      if (j % 2 == p)
        a[i][j] = 'W';
      else
        a[i][j] = 'B';
    }
  }
  if (n == 3) a[1][1] = 'B';
  for (long long int i = 0; i < n; i++) {
    for (long long int j = 0; j < n; j++) {
      cout << a[i][j];
    }
    cout << "\n";
  }
  return 0;
}
