#include using namespace std; typedef long long ll; string mks(ll a,ll b){ ll i;string 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; k=__gcd(x,y); if(z%k) f=false; if(max(x,y)*1000010000) continue; goto label; } } if(x){ for(i=0;i<10000;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; }