#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) f=false; cout << (f?s:"mourennaihasimasenn") << endl; return 0; }