#include <iostream>
#include <string>
using namespace std;
int main(){
	string s;
	string c;
	cin>>s;
	int cnt=0;
	int m=s.size();
	for(int i=1;i<m-3;i++){
		if(s[i]=='m'){
		if(s[i+1]=='e'){
		if(s[i+2]=='w'){
		cnt+=3;
		for(int j=i;j<m-3;j++){
		s[j]=s[j+3];
		}
		s[m-1]='o';
		s[m-2]='o';
		s[m-3]='o';
		i=0;
		}
		}
		}
	}
	if(s[0]=='m' && s[1]=='e' && s[2]=='w' && cnt==s.size()-3){
		cout<<"Cat"<<endl;
	}
	else{
		cout<<"Rabbit"<<endl;
	}
	return 0;
}
### Prompt

Your challenge is to write a CPP solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
#include <string>
using namespace std;
int main(){
	string s;
	string c;
	cin>>s;
	int cnt=0;
	int m=s.size();
	for(int i=1;i<m-3;i++){
		if(s[i]=='m'){
		if(s[i+1]=='e'){
		if(s[i+2]=='w'){
		cnt+=3;
		for(int j=i;j<m-3;j++){
		s[j]=s[j+3];
		}
		s[m-1]='o';
		s[m-2]='o';
		s[m-3]='o';
		i=0;
		}
		}
		}
	}
	if(s[0]=='m' && s[1]=='e' && s[2]=='w' && cnt==s.size()-3){
		cout<<"Cat"<<endl;
	}
	else{
		cout<<"Rabbit"<<endl;
	}
	return 0;
}
```