#include #include #include #include #include #include #include using namespace std; typedef long long ll; int main() { ll x, y, z; cin >> x >> y >> z; for (int i = 0; i < 6000; ++i) { ll tmp = i*x; if (tmp > z) { ll rest = tmp-z; if (rest%y == 0) { ll j = rest/y; if (2*i+2*j-1 <= 10000) { string ans; for (int k = 0; k < j; ++k) ans += 'w'; for (int k = 0; k < i; ++k) ans += 'c'; for (int k = 0; k < i-1; ++k) ans += 'C'; for (int k = 0; k < j; ++k) ans += 'W'; cout << ans << endl; return 0; } } } else if (tmp == z) { string ans; for (int k = 0; k < i; ++k) ans += 'c'; for (int k = 0; k < i-1; ++k) ans += 'C'; cout << ans << endl; return 0; } else { ll rest = z-tmp; if (rest%y == 0) { ll j = rest/y; if (2*i+2*j-1 <= 10000) { string ans; for (int k = 0; k < j; ++k) ans += 'w'; for (int k = 0; k < i; ++k) ans += 'c'; for (int k = 0; k < i+j-1; ++k) ans += 'C'; cout << ans << endl; return 0; } } } } cout << "mourennaihasimasenn" << endl; return 0; }