#include<bits/stdc++.h>
using namespace std;
string S;int a[3],i;
int main(){
cin>>S;if(S=="mewmew"){goto E;}
if(S.find("mw")!=-1){goto E;}
for(int i=0;i<S.size();i++){
if(S[i]=='m'){a[0]++;}
else if(S[i]=='e'){a[1]++;}
else{a[2]++;}
if(!(a[0]>=a[1]&&a[1]>=a[2])){goto E;}
}
cout<<"Cat"<<endl;goto F;
E:;
cout<<"Rabbit"<<endl;
F:;
}
### Prompt

Please create a solution in cpp to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include<bits/stdc++.h>
using namespace std;
string S;int a[3],i;
int main(){
cin>>S;if(S=="mewmew"){goto E;}
if(S.find("mw")!=-1){goto E;}
for(int i=0;i<S.size();i++){
if(S[i]=='m'){a[0]++;}
else if(S[i]=='e'){a[1]++;}
else{a[2]++;}
if(!(a[0]>=a[1]&&a[1]>=a[2])){goto E;}
}
cout<<"Cat"<<endl;goto F;
E:;
cout<<"Rabbit"<<endl;
F:;
}
```