#include #include using namespace std; int main() { //freopen("code.in","r",stdin); //reopen("code.out","w",stdout); long long x,y,z; scanf("%lld %lld %lld",&x,&y,&z); if(!z) return printf("ccW"),0; for(long long a=-10000;a<=10000;a++) { long long b=(z-a*x)/y,t=a; if(a*x+b*y!=z||2*(abs(a)+abs(b))-1>10000) continue; if(a>=0&&b>=0) { printf("c"); while(--a) printf("cC"); while(b--) printf("wC"); return 0; } if(a>=0&&b<=0) { printf("c"); while(--a) printf("cC"); b=-b; while(b--) printf("wW"); return 0; } if(a<=0&&b>=0) { printf("w"); while(--b) printf("wC"); a=-a; while(a--) printf("cW"); return 0; } a=t; } printf("NO"); return 0; }