#include <iostream>
using namespace std;
int main(){
	string s;
	cin>>s;
	int f=1,i;
	for(;f;){
		for(f=0,i=1;i<s.size()-3;i++)
			if(s.substr(i,3)=="mew")s.replace(i,3,""),f=1;
	}
	cout<<(s=="mew"?"Cat":"Rabbit")<<endl;
}
### Prompt

Generate a CPP solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
using namespace std;
int main(){
	string s;
	cin>>s;
	int f=1,i;
	for(;f;){
		for(f=0,i=1;i<s.size()-3;i++)
			if(s.substr(i,3)=="mew")s.replace(i,3,""),f=1;
	}
	cout<<(s=="mew"?"Cat":"Rabbit")<<endl;
}
```