#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(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'; } cout << endl; return true; } int main() { cin.tie(0); ios_base::sync_with_stdio(false); cout << fixed << setprecision(50); ll a, b, c; cin >> a >> b >> c; if (c == 0) { cout << "ccW" << endl; return 0; } REP(i, 5001) { if (b && (c - i * a) % b == 0 && cww(i, (c - i * a) / b)) return 0; if (b && (c + i * a) % b == 0 && cww(-i, (c + i * a) / b)) return 0; if (a && (c - i * b) % a == 0 && cww((c - i * b) / a, i)) return 0; if (a && (c + i * b) % a == 0 && cww((c + i * b) / a, -i)) return 0; } cout << "mourennaihasimasenn" << endl; return 0; }