#include using namespace std; int extgcd(int a, int b, int &x, int &y) { int d = a; if (b != 0) { d = extgcd(b, a % b, y, x); y -= (a / b) * x; } else { x = 1; y = 0; } return d; } int main() { cin.tie(0); ios::sync_with_stdio(false); int a, b, c; cin >> a >> b >> c; int x, y; int d = extgcd(a, b, x, y); string s = ""; if (c % d != 0) s = "mourennaihasimasenn"; else { x *= c / d; y *= c / d; if (x + y > 5000) s = "mourennaihasimasenn"; else { if (x < 0) { x = -x; for (int i = 0; i < y; i++) s += "w"; for (int i = 0; i < y - 1; i++) s += "C"; for (int i = 0; i < x; i++) s += "c"; for (int i = 0; i < x - 1; i++) s += "C"; s += "W"; } else { for (int i = 0; i < x; i++) s += "c"; for (int i = 0; i < x - 1; i++) s += "C"; if (y < 0) { y = -y; for (int i = 0; i < y; i++) s += "w"; for (int i = 0; i < y - 1; i++) s += "C"; s += "W"; } else { for (int i = 0; i < y; i++) s += "w"; for (int i = 0; i < y - 1; i++) s += "C"; if (x != 0 && y != 0) s += "C"; } } } } cout << s << endl; return 0; }