#include <iostream>
#include <string>

#define C "Cat"
#define R "Rabbit"

using namespace std;

string s;

void fn(int i)
{
	if(i+2<s.size()){
		if(s[i+1]=='m') fn(i+1);
		if(s[i+1]=='e'){
			if(s[i+2]=='m') fn(i+2);
			if(s[i+2]=='w') {
				s.erase(i,3);
			}
		}
	}
}

int main(void)
{	
	int i1,i2;

	cin>>s;
	fn(0);
	if(s.empty()) cout<<C<<endl;
	else cout<<R<<endl;

	return 0;
} 
### Prompt

Generate a cpp solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
#include <string>

#define C "Cat"
#define R "Rabbit"

using namespace std;

string s;

void fn(int i)
{
	if(i+2<s.size()){
		if(s[i+1]=='m') fn(i+1);
		if(s[i+1]=='e'){
			if(s[i+2]=='m') fn(i+2);
			if(s[i+2]=='w') {
				s.erase(i,3);
			}
		}
	}
}

int main(void)
{	
	int i1,i2;

	cin>>s;
	fn(0);
	if(s.empty()) cout<<C<<endl;
	else cout<<R<<endl;

	return 0;
} 
```