#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long int n;
  cin >> n;
  long long int a[n][n];
  for (long long int i = 1; i <= n; i++) {
    for (long long int j = 1; j <= n; j++) {
      if ((i + j) % 2 != 0)
        cout << "B";
      else
        cout << "W";
    }
    cout << "\n";
  }
  return 0;
}
