#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
	cin.tie(0); ios::sync_with_stdio(false);
	string str;
	cin >> str;
	if (str == "mew"){cout << "Cat" << endl; return 0;
}
	while (true) {
		bool f;
		string temp = str.substr(1, str.length() - 2);
		auto it = temp.find("mew");
		if (it == string::npos) {
			cout << "Rabbit" << endl;
			return 0;
		}
		temp.erase(it, 3);
		str = str[0] + temp + str[str.length() - 1];
		if (str.length() <= 3) {
			if (str == "mew") {
				cout << "Cat" << endl;
			}
			else cout << "Rabbit" << endl;
			return 0;
		}
	}
}
### Prompt

Create a solution in cpp for the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int main() {
	cin.tie(0); ios::sync_with_stdio(false);
	string str;
	cin >> str;
	if (str == "mew"){cout << "Cat" << endl; return 0;
}
	while (true) {
		bool f;
		string temp = str.substr(1, str.length() - 2);
		auto it = temp.find("mew");
		if (it == string::npos) {
			cout << "Rabbit" << endl;
			return 0;
		}
		temp.erase(it, 3);
		str = str[0] + temp + str[str.length() - 1];
		if (str.length() <= 3) {
			if (str == "mew") {
				cout << "Cat" << endl;
			}
			else cout << "Rabbit" << endl;
			return 0;
		}
	}
}
```