#include using namespace std; string mks(int a,int b){ int i;string s; if(a>0) s="c",a--; else s="w",b--; for(i=0;i>x>>y>>z; int i,j,k; string s; bool f=true; k=__gcd(x,y); if(z%k!=0) f=false; if(max(x,y)*500010000) continue; goto label; } } for(i=0;i<=5000;i++){ if((z-i*y)%x) continue; j=(z-i*y)/x; if(i+abs(j)<=5000){ 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; }