#include<iostream>
using namespace std;
string s;int i;
bool f()
{
	if(s[i]!='m')return false;
	i++;
	if(s[i]!='e'&&!f())return false;
	if(s[i]!='e')return false;
	i++;
	if(s[i]!='w'&&!f())return false;
	if(s[i]!='w')return false;
	i++;
	return true;
}
int main()
{
	cin>>s;cout<<(f()&&i==s.size()?"Cat":"Rabbit")<<endl;
}


### Prompt

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

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include<iostream>
using namespace std;
string s;int i;
bool f()
{
	if(s[i]!='m')return false;
	i++;
	if(s[i]!='e'&&!f())return false;
	if(s[i]!='e')return false;
	i++;
	if(s[i]!='w'&&!f())return false;
	if(s[i]!='w')return false;
	i++;
	return true;
}
int main()
{
	cin>>s;cout<<(f()&&i==s.size()?"Cat":"Rabbit")<<endl;
}


```