#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int h, w; cin >> h >> w; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { bool is_b = (i % 2 == 0) ^ (j % 4 <= 1); cout << (is_b ? "X" : "O"); } cout << "\n"; } }