#include<iostream>
#include<string>
using namespace std;
string S; int a[3];
int main() {
	cin >> S; if (S == "mewmew") { goto E; }
	for (int i = 0; i < S.size() - 1; i++) {
		if (S.substr(i, 2) == "mw") { goto E; }
	}
	for (int i = 0; i < S.size(); i++) {
		if (S[i] == 'm') { a[0]++; }
		else if (S[i] == 'e') { a[1]++; }
		else { a[2]++; }
		if (!(a[0] >= a[1] && a[1] >= a[2])) { goto E; }
	}
	cout << "Cat" << endl; goto F;
E:;
	cout << "Rabbit" << endl;
F:;
}
### Prompt

Please create a solution in CPP to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include<iostream>
#include<string>
using namespace std;
string S; int a[3];
int main() {
	cin >> S; if (S == "mewmew") { goto E; }
	for (int i = 0; i < S.size() - 1; i++) {
		if (S.substr(i, 2) == "mw") { goto E; }
	}
	for (int i = 0; i < S.size(); i++) {
		if (S[i] == 'm') { a[0]++; }
		else if (S[i] == 'e') { a[1]++; }
		else { a[2]++; }
		if (!(a[0] >= a[1] && a[1] >= a[2])) { goto E; }
	}
	cout << "Cat" << endl; goto F;
E:;
	cout << "Rabbit" << endl;
F:;
}
```