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

string s;

void rec(int i) {
    if (s[i] == 'm') {
        if (i+1 < s.size() && s[i+1] == 'm') rec(i+1);
        if (s[i+1] != 'e') return;
        if (i+2 < s.size() && s[i+2] == 'm') rec(i+2);
        if (s[i+2] != 'w') return;
        s.erase(s.begin()+i, s.begin()+i+3);
    }
    
}

int main(void){
    cin >> s;
    rec(0);
    cout << (s=="" ? "Cat" : "Rabbit") << endl;
}
### Prompt

In Cpp, your task is to solve the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

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

string s;

void rec(int i) {
    if (s[i] == 'm') {
        if (i+1 < s.size() && s[i+1] == 'm') rec(i+1);
        if (s[i+1] != 'e') return;
        if (i+2 < s.size() && s[i+2] == 'm') rec(i+2);
        if (s[i+2] != 'w') return;
        s.erase(s.begin()+i, s.begin()+i+3);
    }
    
}

int main(void){
    cin >> s;
    rec(0);
    cout << (s=="" ? "Cat" : "Rabbit") << endl;
}
```