#include using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); int h, w; cin >> h >> w; vector Grid(h, vector(w)); vector pattern(2, vector(4)); pattern = { { 'O', 'O', 'X', 'X' }, { 'X', 'X', 'O', 'O' } }; rep(i, h) rep(j, w) Grid[i][j] = pattern[i % 2][j % 4]; rep(i, h) { rep(j, w) cout << Grid[i][j]; cout << '\n'; } return 0; }