#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int dx[] = {1, 1, 2, 2, -1, -1, -2, -2};
int dy[] = {2, -2, 1, -1, 2, -2, 1, -1};
int n;
char arr[200][200];
void nightfill(int x, int y, char c) {
  for (int i = 0; i < 8; i++) {
    if (x + dx[i] >= 0 && x + dx[i] < n && y + dy[i] >= 0 && y + dy[i] < n &&
        arr[x + dx[i]][y + dy[i]] == 'a') {
      arr[x + dx[i]][y + dy[i]] = c;
      if (c == 'B')
        nightfill(x + dx[i], y + dy[i], 'W');
      else
        nightfill(x + dx[i], y + dy[i], 'B');
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  memset((arr), 'a', sizeof(arr));
  arr[0][0] = 'W';
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      if (arr[i][j] == 'W') {
        nightfill(i, j, 'B');
      } else if (arr[i][j] == 'B') {
        nightfill(i, j, 'W');
      }
    }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++)
      if (arr[i][j] != 'a')
        cout << arr[i][j];
      else
        cout << 'B';
    cout << endl;
  }
  return 0;
}
