#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define repb(i, a, b) for(int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define int long long
#define fi first
#define se second
using namespace std;
typedef pair<int, int> P;

string s;

int f(int now){
    // cout << now << endl;
    if(s[now] != 'm') return -1;
    now++;
    if(s[now] != 'e'){
        now = f(now);
        if(now == -1) return -1;
    }
    now++;
    if(s[now] != 'w'){
        now = f(now);
        if(now == -1) return -1;
    }
    now++;
    return now;
}

signed main(){
    cin >> s;
    cout << (f(0) == (int)s.size() ? "Cat" : "Rabbit") << endl;
}
### Prompt

Your task is to create a Cpp solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define repb(i, a, b) for(int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define int long long
#define fi first
#define se second
using namespace std;
typedef pair<int, int> P;

string s;

int f(int now){
    // cout << now << endl;
    if(s[now] != 'm') return -1;
    now++;
    if(s[now] != 'e'){
        now = f(now);
        if(now == -1) return -1;
    }
    now++;
    if(s[now] != 'w'){
        now = f(now);
        if(now == -1) return -1;
    }
    now++;
    return now;
}

signed main(){
    cin >> s;
    cout << (f(0) == (int)s.size() ? "Cat" : "Rabbit") << endl;
}
```