#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, 10001) { auto cww = [&](ll x) { if ((c - x * a) % b) return false; ll y = (c - x * a) / b; 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; } string ans; 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; }; if (cww(i)) return 0; if (cww(-i)) return 0; } cout << "mourennaihasimasenn" << endl; return 0; }