#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  bool fg = 0;
  for (int i = 0; i < n; i++) {
    if (fg == 0) {
      for (int j = 0; j < n; j++) {
        if (j % 2 != 0) {
          cout << "W";
        } else {
          cout << "B";
        }
      }
      fg = 1;
    } else {
      for (int j = 0; j < n; j++) {
        if (j % 2 != 0) {
          cout << "B";
        } else {
          cout << "W";
        }
      }
      fg = 0;
    }
    cout << endl;
  }
  return 0;
}
