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