#include<bits/stdc++.h>
using namespace std;
string S;int a[3],i;
int main(){
	cin>>S;if(S=="mewmew"){goto E;}
	for(i=0;i<S.size()-1;i++){
		if(S.substr(i,2)=="mw"){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

Your challenge is to write a cpp solution 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;}
	for(i=0;i<S.size()-1;i++){
		if(S.substr(i,2)=="mw"){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:;
}
```