#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<vector<char>> res(n, vector<char>(n, '.'));
  res[0][0] = 'W';
  vector<int> as = {2, 2, 1, 1, -1, -1, -2, -2},
              bs = {1, -1, 2, -2, 2, -2, 1, -1};
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if (res[i][j] == '.') {
        if (j != 0) {
          if (res[i][j - 1] == 'W') {
            res[i][j] = 'B';
          } else {
            res[i][j] = 'W';
          }
        } else {
          if (res[i - 1][j] == 'W') {
            res[i][j] = 'B';
          } else {
            res[i][j] = 'W';
          }
        }
      }
      for (int k = 0; k < 8; k++) {
        if (i + as[k] >= 0 && i + as[k] < n && j + bs[k] >= 0 &&
            j + bs[k] < n) {
          if (res[i][j] == 'W') {
            if (res[i + as[k]][j + bs[k]] == '.') {
              res[i + as[k]][j + bs[k]] = 'B';
            }
          }
          if (res[i][j] == 'B') {
            if (res[i + as[k]][j + bs[k]] == '.') {
              res[i + as[k]][j + bs[k]] = 'W';
            }
          }
        }
      }
    }
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cout << res[i][j];
    }
    cout << endl;
  }
}
