#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  char s1[110], s2[110];
  for (int a = 1; a <= 100; a++) {
    if (a % 2 == 1) {
      s1[a] = 'W';
      s2[a] = 'B';
    } else {
      s1[a] = 'B';
      s2[a] = 'W';
    }
  }
  int n;
  cin >> n;
  for (int a = 1; a <= n; a++) {
    if (a % 2 == 1)
      for (int b = 1; b <= n; b++) cout << s1[b];
    else
      for (int b = 1; b <= n; b++) cout << s2[b];
    cout << endl;
  }
  return 0;
}
