#include <iostream>
#include <string>
#include <sstream>

using namespace std;
char str[600];
char *sp;

int cat(){
	char c;
	c=*sp++;
	if(c!='m'){
		sp--;
		return 1;
	}
	if(!cat())return 0;
	c=*sp++;
	if(c!='e') return 0;
	if(!cat())return 0;
	c=*sp++;
	if(c!='w') return 0;
	return 1;
}

int main(){
	cin>>str;
	sp = str;
	cout<<(cat()&&!*sp?"Cat":"Rabbit")<<endl;
}
### Prompt

Your task is to create a CPP solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

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

using namespace std;
char str[600];
char *sp;

int cat(){
	char c;
	c=*sp++;
	if(c!='m'){
		sp--;
		return 1;
	}
	if(!cat())return 0;
	c=*sp++;
	if(c!='e') return 0;
	if(!cat())return 0;
	c=*sp++;
	if(c!='w') return 0;
	return 1;
}

int main(){
	cin>>str;
	sp = str;
	cout<<(cat()&&!*sp?"Cat":"Rabbit")<<endl;
}
```