#include int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); uint_fast32_t H, W, i, j; std::cin >> H >> W; for (i = 0; i != H; ++i) { for (j = 0; j != W; ++j) { if ((i & 1) ^ ((j >> 1) & 1)) std::cout << 'O'; else std::cout << 'X'; } std::cout << '\n'; } return 0; }