#include <iostream>
using namespace std;

#define F return(false);
typedef string::iterator S;

string ss;

bool mew(S& it){
    if( *it != 'm' ) F
    it++;
    if( it == ss.end() ) F
    if( *it == 'm' ){
        if( !mew(it) ) F
    }else if( it == ss.end() || *it != 'e' ) F
    it++;
    if( it == ss.end() ) F
    if( *it == 'm' ){
        if( !mew(it) ) F
    }else if( it == ss.end() || *it != 'w' ) F
    it++;
    return true;
}

int main(){
    cin >> ss;
    if( ss == "" ){
        cout << "Cat" << endl;
        return 0;
    }
    S it = ss.begin();
    bool flg = mew(it);
    if( flg && it == ss.end() ){
        cout << "Cat" << endl;
    }else{
        cout << "Rabbit" << endl;
    }
    return 0;
}
### Prompt

Develop a solution in CPP to the problem described below:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
using namespace std;

#define F return(false);
typedef string::iterator S;

string ss;

bool mew(S& it){
    if( *it != 'm' ) F
    it++;
    if( it == ss.end() ) F
    if( *it == 'm' ){
        if( !mew(it) ) F
    }else if( it == ss.end() || *it != 'e' ) F
    it++;
    if( it == ss.end() ) F
    if( *it == 'm' ){
        if( !mew(it) ) F
    }else if( it == ss.end() || *it != 'w' ) F
    it++;
    return true;
}

int main(){
    cin >> ss;
    if( ss == "" ){
        cout << "Cat" << endl;
        return 0;
    }
    S it = ss.begin();
    bool flg = mew(it);
    if( flg && it == ss.end() ){
        cout << "Cat" << endl;
    }else{
        cout << "Rabbit" << endl;
    }
    return 0;
}
```