#include using namespace std; typedef long long ll; string mks(ll a,ll b){ ll i;string s; if(abs(a)>5050||abs(b)>5050) return s; if(a>0) s="c",a--; else s="w",b--; for(i=0;i>x>>y>>z; ll i,j,k; string s; bool f=true; if(z==0) s="ccW"; else if(x==0){ if(y!=0){ if(z%y==0) s=mks(0,z/y); } }else{ if(y==0){ if(z%x==0) s=mks(z/x,0); }else{ if(f){ for(i=0;i<5050;i++){ if(abs(z-i*x)%y) continue; j=(z-i*x)/y; s=mks(i,j); if(s.size()==0||s.size()>10000) continue; goto label; } for(i=0;i<5050;i++){ if(abs(z-i*y)%x) continue; j=(z-i*y)/x; s=mks(j,i); if(s.size()==0||s.size()>10000) continue; goto label; } } } } label: //cout << s << endl; if(s.size()==0||s.size()>10000) f=false; cout << (f?s:"mourennaihasimasenn") << endl; return 0; }