#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j;
  char a[110][100];
  cin >> n;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      a[i][j] = 'B';
    }
  }
  for (i = 0; i < n; i = i + 2) {
    for (j = 0; j < n; j = j + 2) {
      a[i][j] = 'W';
    }
  }
  for (i = 1; i < n; i = i + 2) {
    for (j = 1; j < n; j = j + 2) {
      a[i][j] = 'W';
    }
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      cout << a[i][j];
    }
    cout << endl;
  }
}
