#include <bits/stdc++.h>

using namespace std;

string conv(string s){
    string res="";
    int i=1;
    res+=s[0];
    for(;i<(int)s.length()-3;i++){
        string sub=s.substr(i,3);
        if(sub=="mew") i+=2;
        else res+=s[i];
    }
    for(;i<(int)s.length();i++) res+=s[i];
    return res;
}
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  string s;cin>>s;
  if(s=="mew"){
    cout << "Cat"<<endl;
    return 0;
  }
  int pre=s.length();
  while(true){
      s=conv(s);
      if((int)s.length()==pre){
          cout<<"Rabbit"<<endl;
          return 0;
      }
      if(s=="mew"){
          cout<<"Cat"<<endl;
          return 0;
      }
      pre=s.length();
  }
  return 0;
}
### Prompt

Please create a solution in cpp to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <bits/stdc++.h>

using namespace std;

string conv(string s){
    string res="";
    int i=1;
    res+=s[0];
    for(;i<(int)s.length()-3;i++){
        string sub=s.substr(i,3);
        if(sub=="mew") i+=2;
        else res+=s[i];
    }
    for(;i<(int)s.length();i++) res+=s[i];
    return res;
}
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);

  string s;cin>>s;
  if(s=="mew"){
    cout << "Cat"<<endl;
    return 0;
  }
  int pre=s.length();
  while(true){
      s=conv(s);
      if((int)s.length()==pre){
          cout<<"Rabbit"<<endl;
          return 0;
      }
      if(s=="mew"){
          cout<<"Cat"<<endl;
          return 0;
      }
      pre=s.length();
  }
  return 0;
}
```