#include <set>
#include <iostream>
using namespace std;

int main(){
  string s; cin >> s;

  bool flag = true;
  while(flag){
    flag = false;

    for(int i = 1; i + 3 < s.size(); i++){
      if(s[i] == 'm' && s[i + 1] == 'e' && s[i + 2] == 'w'){
        flag = true;
        s = s.substr(0, i) + s.substr(i + 3);
      }
    }
  }

  if(s == "mew") cout << "Cat" << endl;
  else cout << "Rabbit" << endl;

  return 0;
}
### Prompt

Your challenge is to write a CPP solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

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

int main(){
  string s; cin >> s;

  bool flag = true;
  while(flag){
    flag = false;

    for(int i = 1; i + 3 < s.size(); i++){
      if(s[i] == 'm' && s[i + 1] == 'e' && s[i + 2] == 'w'){
        flag = true;
        s = s.substr(0, i) + s.substr(i + 3);
      }
    }
  }

  if(s == "mew") cout << "Cat" << endl;
  else cout << "Rabbit" << endl;

  return 0;
}
```