#include using namespace std; #if __has_include() #include using namespace atcoder; #endif #ifndef ONLINE_JUDGE #define _GLIBCXX_DEBUG #include template ostream& operator<<(ostream& os, const pair& p) {return os<<'(' < ostream& operator<<(ostream& os, const vector& v) {os<<'[';for(auto it=v.begin();it!=v.end();++it){os<<*it; if(next(it)!=v.end()){os<<", ";}}return os<<']';} template ostream& operator<<(ostream& os, const vector>& vv) {os<<"[\n";for(auto it=vv.begin();it!=vv.end();++it){os<<" "<<*it;if(next(it)!=vv.end()){os<<",\n";}else{os<<"\n";}}return os<<"]";} #define dump(x) cerr << #x << " = " << (x) << '\n' #else #define dump(x) (void)0 #endif using ll = long long; using ld = long double; using P = pair; template using pq = priority_queue; template using pq_g = priority_queue, greater>; #define out(x) cout<{}; (i) != (n); ++(i)) #define REP2(i, l, r) for (auto i = (l); (i) != (r); ++(i)) #define rep(...) OVERLOAD_REP(__VA_ARGS__, REP2, REP1)(__VA_ARGS__) template inline bool chmin(T& a, T b) {if(a > b){a = b; return true;} else {return false;}}; template inline bool chmax(T& a, T b) {if(a < b){a = b; return true;} else {return false;}}; const ll INF=(1LL<<60); const ll mod=998244353; using Graph = vector>; using Network = vector>>; using Grid = vector; const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; const int dx2[8] = {1, 1, 1, 0, 0, -1, -1, -1}; const int dy2[8] = {1, 0, -1, 1, -1, 1, 0, -1}; int main() { cin.tie(0); ios_base::sync_with_stdio(false); int H,W; cin>>H>>W; if (H == 1 && W == 1) { cout << "O"; return 0; } vector a(W), b(W); for (int x=0; xsputn(a.data(), W); rb->sputc('\n'); rb->sputn(a.data(), W); rb->sputc('\n'); rb->sputn(b.data(), W); rb->sputc('\n'); rb->sputn(b.data(), W); rb->sputc('\n'); } if (r>=1) { rb->sputn(a.data(), W); rb->sputc('\n'); } if (r>=2) { rb->sputn(a.data(), W); rb->sputc('\n'); } if (r>=3) { rb->sputn(b.data(), W); rb->sputc('\n'); } return 0; }