#include using namespace std; #define _p(...) (void)printf(__VA_ARGS__) #define forr(x,arr) for(auto&& x:arr) #define _overload3(_1,_2,_3,name,...) name #define _rep2(i,n) _rep3(i,0,n) #define _rep3(i,a,b) for(int i=int(a);i=int(a);i--) #define rrep(...) _overload3(__VA_ARGS__,_rrep3,_rrep2,)(__VA_ARGS__) #define all(x) (x).begin(), (x).end() #define bit(n) (1LL<<(n)) #define sz(x) ((int)(x).size()) #define fst first #define snd second using ll=long long;using pii=pair;using vb=vector; using vi=vector;using vvi=vector;using vvvi=vector; using vl=vector;using vvl=vector;using vvvl=vector; using vd=vector;using vvd=vector;using vvvd=vector; using vpii=vector;using vvpii=vector;using vvvpii=vector; template T read() {T t; cin >> t; return t;} void minu(char c, int n, string &ret) { rep(i, n) { ret += c; ret += 'W'; } } void neg(char c, int n, string &ret) { rep(i, n+2) ret += c; rep(i, n) ret += 'C'; ret += 'W'; } void pos(char c, int n, string &ret) { rep(i, n) ret += c; rep(i, n-1) ret += 'C'; } string solve() { int c = read(); int w = read(); ll Z = read(); if (Z == 0) return ""; rep(nnc, 0, 5010) rep(pn, 2) { int nc = nnc; if (pn) nc = -nc; ll rem = Z - nnc * c; if (rem % w == 0) { ll nw = rem / w; //_p("%d,%lld\n", nc, nw); if (nc == 0) { if (nw < 0) { nw = -nw; ll len = 2 * nw + 3; if (len > 10000) continue; string ret; neg('w', nw, ret); return ret; } else { ll len = 2 * nw -1; if (len > 10000) continue; string ret; pos('w', nw, ret); return ret; } } else if (nw == 0) { if (nc < 0) { nc = -nc; ll len = 2 * -nc + 3; if (len > 10000) continue; string ret; neg('c', nc, ret); return ret; } else { ll len = 2 * nc -1; if (len > 10000) continue; string ret; pos('c', nc, ret); return ret; } } else if (nc > 0 && nw > 0) { string ret; ll len = 2 * nc - 1 + 2 * nw - 1 + 1; if (len > 10000) continue; pos('c', nc, ret); pos('w', nw, ret); ret += 'C'; return ret; } else if (nc > 0 && nw < 0) { nw = -nw; ll len = 2 * nc - 1 + 2 * nw; if (len > 10000) continue; string ret; pos('c', nc, ret); minu('w', nw, ret); return ret; } else if (nc < 0 && nw > 0) { nc = -nc; string ret; ll len = 2 * nw - 1 + 2 * nc; if (len > 10000) continue; pos('w', nw, ret); minu('c', nc, ret); return ret; } else if (nc < 0 && nw < 0) { nc = -nc; nw = -nw; string ret; ll len = 2 * nc - 1 + 2 * nw; if (len > 10000) continue; neg('c', nc, ret); minu('w', nw, ret); return ret; } } } return ""; assert(false); } void Main() { string ret = solve(); cout << ret << endl; //cout << sz(ret) << endl; } int main() { cin.tie(nullptr); ios::sync_with_stdio(false); Main(); return 0; }