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

string S;

int catcheck(int pointer){
	
	if (S[pointer] != 'm') return -1;
	pointer++;

	if (S[pointer] != 'e'){
		pointer = catcheck(pointer);
		if (pointer == -1) return -1;
	}
	pointer++;

	if (S[pointer] != 'w'){
		pointer = catcheck(pointer);
		if (pointer == -1) return -1;
	}
	pointer++;

	return pointer;
}

int main(){

	cin >> S;
	if (S.length() == catcheck(0)){
		cout << "Cat" << endl;
	}
	else{
		cout << "Rabbit" << endl;
	}

	return 0;
}
### Prompt

Please formulate a CPP solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

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

string S;

int catcheck(int pointer){
	
	if (S[pointer] != 'm') return -1;
	pointer++;

	if (S[pointer] != 'e'){
		pointer = catcheck(pointer);
		if (pointer == -1) return -1;
	}
	pointer++;

	if (S[pointer] != 'w'){
		pointer = catcheck(pointer);
		if (pointer == -1) return -1;
	}
	pointer++;

	return pointer;
}

int main(){

	cin >> S;
	if (S.length() == catcheck(0)){
		cout << "Cat" << endl;
	}
	else{
		cout << "Rabbit" << endl;
	}

	return 0;
}
```