#include <bits/stdc++.h>
using namespace std;
int n;
char a[105][105];
int main() {
  cin >> n;
  a[1][1] = 'W';
  for (int i = 2; i <= n; i++) {
    if (a[1][i - 1] == 'W')
      a[1][i] = 'B';
    else
      a[1][i] = 'W';
  }
  for (int i = 2; i <= n; i++)
    for (int j = 1; j <= n; j++) {
      if (a[i - 1][j] == 'W')
        a[i][j] = 'B';
      else
        a[i][j] = 'W';
    }
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) cout << a[i][j];
    cout << '\n';
  }
}
