#include <bits/stdc++.h>
using namespace std;
char s[2] = {'W', 'B'};
int main() {
  int n;
  while (scanf("%d", &n) == 1) {
    if (n == 3) {
      cout << "WBW" << endl;
      cout << "BBB" << endl;
      cout << "WBW" << endl;
      continue;
    }
    int f = 0;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        if (f == 0) {
          cout << s[f];
          f = 1;
        } else {
          cout << s[f];
          f = 0;
        }
      }
      cout << endl;
      if (n % 2 == 0) {
        if (f == 0)
          f = 1;
        else
          f = 0;
      }
    }
  }
  return 0;
}
