#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  string s1 = "", s2 = "";
  for (long long i = 0; i < n; i++) {
    if (i % 2 == 0)
      s1 = s1 + "W";
    else
      s1 = s1 + "B";
  }
  for (long long i = 0; i < n; i++) {
    if (i % 2 == 0)
      s2 = s2 + "B";
    else
      s2 = s2 + "W";
  }
  for (long long i = 0; i < n; i++) {
    if (i % 2 == 0)
      cout << s1 << endl;
    else
      cout << s2 << endl;
  }
}
