#include using namespace std; using ll = long long; using ld = long double; using u32 = uint32_t; using vi = vector; using vvi = vector; using vb = vector; using vvb = vector; using vl = vector; using vvl = vector; using vd = vector; using vvd = vector; #define REP(i,n) for(auto i = 0 * (n), i##_len = (n); i < i##_len; ++i) #define ALL(c) (c).begin(), (c).end() #define FOR(i,s,n) for(ll i=s, i##_len=(ll)(n); i> a >> b >> c; REP(i, 6001) { auto cww = [&](ll x, ll y) { if (x == 0 && y == 0) return false; if (x < 0) { if (-x + y + max(0, y - 1) - x > 10000) return false; } else if (y < 0) { if (-y + x + max(0, x - 1) - y > 10000) return false; } else { if (x + y + max(0, x - 1 + y) > 10000) return false; } if (x < 0) { REP(i, -x) cout << 'c'; REP(i, y) cout << 'w'; REP(i, y - 1) cout << 'C'; REP(i, -x) cout << 'W'; } else if (y < 0) { REP(i, -y) cout << 'w'; REP(i, x) cout << 'c'; REP(i, x - 1) cout << 'C'; REP(i, -y) cout << 'W'; } else { REP(i, x) cout << 'c'; REP(i, y) cout << 'w'; REP(i, y + x - 1) cout << 'C'; } return true; }; { ll x = i; if ((c - x * a) % b == 0) { if (cww(x, (c - x * a) / b)) return 0; } } { ll x = -i; if ((c - x * a) % b == 0) { if (cww(x, (c - x * a) / b)) return 0; } } { ll y = i; if ((c - y * b) % a == 0) { if (cww((c - y * b) / a, y)) return 0; } } { ll y = -i; if ((c - y * b) % a == 0) { if (cww((c - y * b) / a, y)) return 0; } } } cout << "mourennaihasimasenn" << endl; return 0; }