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