#include <stdio.h>
#include <time.h>
#include <iostream>
#include <vector>
#include <math.h>
#include <bitset>
#include <algorithm>

using namespace std;

string str;

int isCat( int ptr ) {
	if( str[ptr] != 'm' ) {
		return -1;
	}
	ptr++;
	if( str[ptr] != 'e' ) {
		ptr = isCat(ptr);
		if( ptr == -1 ) return -1;
	}
	ptr++;
	if( str[ptr] != 'w' ) {
		ptr = isCat(ptr);
		if( ptr == -1 ) return -1;
	}
	ptr ++;
	return ptr;
}

int solve() {
	cin >> str;
	int p = isCat(0);
	if( p == str.length() || str == "" || str == "mew" )
		cout << "Cat" << endl;
	else
		cout << "Rabbit" << endl;
	return 1;
}
     
int main(void){
	while(1){
		if( solve() ) break;
	}
    return 0;
}
### Prompt

Develop a solution in cpp to the problem described below:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <stdio.h>
#include <time.h>
#include <iostream>
#include <vector>
#include <math.h>
#include <bitset>
#include <algorithm>

using namespace std;

string str;

int isCat( int ptr ) {
	if( str[ptr] != 'm' ) {
		return -1;
	}
	ptr++;
	if( str[ptr] != 'e' ) {
		ptr = isCat(ptr);
		if( ptr == -1 ) return -1;
	}
	ptr++;
	if( str[ptr] != 'w' ) {
		ptr = isCat(ptr);
		if( ptr == -1 ) return -1;
	}
	ptr ++;
	return ptr;
}

int solve() {
	cin >> str;
	int p = isCat(0);
	if( p == str.length() || str == "" || str == "mew" )
		cout << "Cat" << endl;
	else
		cout << "Rabbit" << endl;
	return 1;
}
     
int main(void){
	while(1){
		if( solve() ) break;
	}
    return 0;
}
```