#include<bits/stdc++.h>
using namespace std;

int main(){
    string s;   cin>>s;
    bool flag=true;
    int a=0;
    if(s[0]=='m'){
        ++a;

        for(int i=1;i<s.length();i++){
            if(s[i]=='m')a++;
            if(s[i]=='e')a+=2;
            if(s[i]=='w')a-=3;

            if(i<s.length()-1 && a<=0){
                flag=false;
                break;
            }
        }
    }else flag=false;

    flag? cout<<"Cat"<<endl :   cout<<"Rabbit"<<endl;



    return 0;
}


### Prompt

Develop a solution in Cpp to the problem described below:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include<bits/stdc++.h>
using namespace std;

int main(){
    string s;   cin>>s;
    bool flag=true;
    int a=0;
    if(s[0]=='m'){
        ++a;

        for(int i=1;i<s.length();i++){
            if(s[i]=='m')a++;
            if(s[i]=='e')a+=2;
            if(s[i]=='w')a-=3;

            if(i<s.length()-1 && a<=0){
                flag=false;
                break;
            }
        }
    }else flag=false;

    flag? cout<<"Cat"<<endl :   cout<<"Rabbit"<<endl;



    return 0;
}


```