#include <iostream>
#include <cstring>
#define rep(i,n) for(int i = 0; i < n; i++)
using namespace std;

int m, e, w;

int main(){
	string str, tmp;
	cin >> str;
	if(str[0] != 'm'){
		cout << "Rabbit" << endl;
		return 0;
	}
	m++;
	for(int i = 1; i < str.size(); i++){
		if(str[i] == 'm') m++;
		else if(str[i] == 'e'){
			e++;
			if(i == str.size()-1 || str[i+1] == 'e'){
				cout << "Rabbit" << endl;
				return 0;
			}
		}
		else{
			w++;
			if(i != str.size()-1){
				if(m == w){
					cout << "Rabbit" << endl;
					return 0;
				}
			}
		}
		if(m < e || e < w || m < w){
			cout << "Rabbit" << endl;
			return 0;
		}
	}
	cout << "Cat" << endl;
}
### Prompt

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

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
#include <cstring>
#define rep(i,n) for(int i = 0; i < n; i++)
using namespace std;

int m, e, w;

int main(){
	string str, tmp;
	cin >> str;
	if(str[0] != 'm'){
		cout << "Rabbit" << endl;
		return 0;
	}
	m++;
	for(int i = 1; i < str.size(); i++){
		if(str[i] == 'm') m++;
		else if(str[i] == 'e'){
			e++;
			if(i == str.size()-1 || str[i+1] == 'e'){
				cout << "Rabbit" << endl;
				return 0;
			}
		}
		else{
			w++;
			if(i != str.size()-1){
				if(m == w){
					cout << "Rabbit" << endl;
					return 0;
				}
			}
		}
		if(m < e || e < w || m < w){
			cout << "Rabbit" << endl;
			return 0;
		}
	}
	cout << "Cat" << endl;
}
```