#include <bits/stdc++.h>
int main() {
  int32_t size;
  std::cin >> size;
  if (size % 2 == 0) {
    for (int32_t i = 0; i < size; i++) {
      for (int32_t j = 0; j < size; j++) {
        for (int32_t k = 0; k < size; k++) {
          int32_t color = (i + j / 2 + k / 2) % 2;
          std::cout << (color == 0 ? "b" : "w");
        }
        std::cout << std::endl;
      }
      std::cout << std::endl;
    }
  } else {
    std::cout << "-1" << std::endl;
  }
  return 0;
}
