#include <iostream>
#include <string>
using namespace std;

const char *p;

void parse(){
	if(*p == 'm'){
		++p;
		parse();
		if(*p++ != 'e'){ throw 0; }
		parse();
		if(*p++ != 'w'){ throw 0; }
	}
}

int main(){
	string s;
	cin >> s;
	p = s.c_str();
	bool cat = false;
	try{
		parse();
		cat = !*p;
	}catch(...){}

	cout << (cat ? "Cat\n" : "Rabbit\n");
}
### Prompt

Construct a CPP code solution to the problem outlined:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
#include <string>
using namespace std;

const char *p;

void parse(){
	if(*p == 'm'){
		++p;
		parse();
		if(*p++ != 'e'){ throw 0; }
		parse();
		if(*p++ != 'w'){ throw 0; }
	}
}

int main(){
	string s;
	cin >> s;
	p = s.c_str();
	bool cat = false;
	try{
		parse();
		cat = !*p;
	}catch(...){}

	cout << (cat ? "Cat\n" : "Rabbit\n");
}
```