#include <bits/stdc++.h>
const int N = 2e5 + 5;
const int highestboolN = 1e9;
const long long unsigned inf = 1234568901234567890;
const long double pi = 3.141592653589793;
const int md = 1e9 + 7;
using namespace std;
int here = 1;
void force_break() {
  here++;
  if (here >= (N * 100)) {
    cout << "\n\n\t Infinite loop \n\n";
    exit(1);
  }
  return;
}
int board[105][105];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  scanf("%d", &n);
  memset(board, 0, sizeof(board));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (board[i][j]) continue;
      char temp;
      if ((i + j) % 2) {
        board[i][j] = 1;
        temp = 2;
      } else {
        board[i][j] = 2;
        temp = 1;
      }
      if (i + 2 < n and j + 1 < n) board[i + 2][j + 1] = temp;
      if (i + 1 < n and j + 2 < n) board[i + 1][j + 2] = temp;
      if (i + 2 < n and j - 1 >= 0) board[i + 2][j - 1] = temp;
      if (i + 1 < n and j - 2 >= 0) board[i + 1][j - 2] = temp;
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (board[i][j] == 1)
        cout << 'B';
      else if (board[i][j] == 2)
        cout << 'W';
    }
    cout << endl;
  }
  return 0;
}
