#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long ans = 0;
  char arr[n][n];
  char p = 'B';
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < n; j++) {
      if (p == 'B') {
        arr[i][j] = 'W';
        p = 'W';
      } else {
        arr[i][j] = 'B';
        p = 'B';
      }
    }
    if (arr[i][0] == 'W')
      p = 'W';
    else
      p = 'B';
  }
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < n; j++) cout << arr[i][j];
    cout << endl;
  }
  return 0;
}
