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

int main(){
  string S;
  cin>>S;
  while(true){
    if(S.size()<=3){
      if(S=="mew"){
        cout<<"Cat"<<endl;
        return 0;
      }else{
        cout<<"Rabbit"<<endl;
        return 0;
      }
    }else{
      bool flag = false;
      for(int i=1;i<S.size()-3;i++){
        if(S[i]=='m'&&S[i+1]=='e'&&S[i+2]=='w'){
          string sub1=S.substr(0,i),sub2=S.substr(i+3);
          S= sub1+sub2;
          flag=true;
          break;
        }
      }
      if(flag==false){
        cout<<"Rabbit"<<endl;
        return 0;
      }
    }
  }
}


### Prompt

Generate a cpp solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

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

int main(){
  string S;
  cin>>S;
  while(true){
    if(S.size()<=3){
      if(S=="mew"){
        cout<<"Cat"<<endl;
        return 0;
      }else{
        cout<<"Rabbit"<<endl;
        return 0;
      }
    }else{
      bool flag = false;
      for(int i=1;i<S.size()-3;i++){
        if(S[i]=='m'&&S[i+1]=='e'&&S[i+2]=='w'){
          string sub1=S.substr(0,i),sub2=S.substr(i+3);
          S= sub1+sub2;
          flag=true;
          break;
        }
      }
      if(flag==false){
        cout<<"Rabbit"<<endl;
        return 0;
      }
    }
  }
}


```