#include #include #define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) using namespace atcoder; using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(12); int h, w; cin >> h >> w; rep(i, 0, h) { rep(j, 0, w) { int o = (i / 2 % 2) ^ (j % 2); cout << (o ? 'O' : 'X'); } cout << '\n'; } }