#include <bits/stdc++.h>
#define ll long long
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;

string s;
int ind = 0;

void solve() {
    if (s[ind] != 'm') {
        return;
    }
    ++ind;
    solve();
    if (s[ind] != 'e') {
        return;
    }
    ++ind;
    solve();
    if (s[ind] != 'w') {
        return;
    }
    ++ind;
    return;
}

int main() {
    cin >> s;
    int n = s.length();
    solve();
    if (ind == n) cout << "Cat" << endl;
    else cout << "Rabbit" << endl;
}

### Prompt

Please formulate a cpp solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <bits/stdc++.h>
#define ll long long
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;

string s;
int ind = 0;

void solve() {
    if (s[ind] != 'm') {
        return;
    }
    ++ind;
    solve();
    if (s[ind] != 'e') {
        return;
    }
    ++ind;
    solve();
    if (s[ind] != 'w') {
        return;
    }
    ++ind;
    return;
}

int main() {
    cin >> s;
    int n = s.length();
    solve();
    if (ind == n) cout << "Cat" << endl;
    else cout << "Rabbit" << endl;
}

```