#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;
int main(){
  string a;
  int cnt,cnt2;
  cin>>a;
  if(a.size()<3)cout<<"Rabbit"<<endl;
  else{
    while(1){
      cnt=0,cnt2=0;
      int i,size=a.size();
      for(i=0;i<size-2;i++){
        string b;
        b+=a[i];
        b+=a[i+1];
        b+=a[i+2];
        if(b=="mew"){
          for(int j=0;j<3;j++)a.erase(a.begin()+i);
          cnt=1;
          if(a[i]=='m')cnt2=1;
          break;
        }
      }
      if(cnt==0||cnt2==1){
        cout<<"Rabbit"<<endl;
        break;
      }else if(a.size()==0){
        cout<<"Cat"<<endl;
        break;
      }else if(cnt==1&&(i==0||i==size-3)){
          cout<<"Rabbit"<<endl;
          break;
      }
    }
  }
  return 0;
}
### Prompt

Develop a solution in CPP to the problem described below:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include<iostream>
#include<string>
#include<stdio.h>
using namespace std;
int main(){
  string a;
  int cnt,cnt2;
  cin>>a;
  if(a.size()<3)cout<<"Rabbit"<<endl;
  else{
    while(1){
      cnt=0,cnt2=0;
      int i,size=a.size();
      for(i=0;i<size-2;i++){
        string b;
        b+=a[i];
        b+=a[i+1];
        b+=a[i+2];
        if(b=="mew"){
          for(int j=0;j<3;j++)a.erase(a.begin()+i);
          cnt=1;
          if(a[i]=='m')cnt2=1;
          break;
        }
      }
      if(cnt==0||cnt2==1){
        cout<<"Rabbit"<<endl;
        break;
      }else if(a.size()==0){
        cout<<"Cat"<<endl;
        break;
      }else if(cnt==1&&(i==0||i==size-3)){
          cout<<"Rabbit"<<endl;
          break;
      }
    }
  }
  return 0;
}
```