#include <iostream>
#include <string>

using namespace std;

int main(){
    string s; cin >> s;
    while(3 < s.size()){
        int f = s.size();
        for(int i=1; i < s.size()-3; i++){
            string mew = s.substr(i, 3);
            if(mew == "mew") s = s.substr(0, i) + s.substr(i+3);
        }
        if(f == s.size()) break;
    }
    cout << (s=="mew"?"Cat":"Rabbit") << endl;
}
### Prompt

Construct a Cpp code solution to the problem outlined:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
#include <string>

using namespace std;

int main(){
    string s; cin >> s;
    while(3 < s.size()){
        int f = s.size();
        for(int i=1; i < s.size()-3; i++){
            string mew = s.substr(i, 3);
            if(mew == "mew") s = s.substr(0, i) + s.substr(i+3);
        }
        if(f == s.size()) break;
    }
    cout << (s=="mew"?"Cat":"Rabbit") << endl;
}
```