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