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