#include <bits/stdc++.h>
const int N = 100005;
const long double pi = 3.141592653;
const long long MOD = 1000000007;
using namespace std;
int dx[9] = {1, -1, 0, 0, 1, 1, -1, -1, 0};
int dy[9] = {0, 0, 1, -1, 1, -1, 1, -1, 0};
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int T = 1;
  while (T--) {
    int n, i, j;
    cin >> n;
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++) {
        if ((i + j) % 2 == 0)
          cout << "B";
        else
          cout << "W";
      }
      cout << "\n";
    }
    return 0;
  }
  return 0;
}
