#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

bool solve(string s){
  if(s=="mew") return true;
  if(s.length()<=3) return false;
  s = s.substr(1,s.length()-2);
  while(true){
    int loc = s.find("mew");
    if(loc==-1) break;
    s.erase(loc,3);
  }
  return s=="e";
}
int main(){
  string s;cin >> s;
  if(solve(s)) cout << "Cat" << endl;
  else cout << "Rabbit" << endl;
  return 0;
}
### Prompt

In Cpp, your task is to solve the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

bool solve(string s){
  if(s=="mew") return true;
  if(s.length()<=3) return false;
  s = s.substr(1,s.length()-2);
  while(true){
    int loc = s.find("mew");
    if(loc==-1) break;
    s.erase(loc,3);
  }
  return s=="e";
}
int main(){
  string s;cin >> s;
  if(solve(s)) cout << "Cat" << endl;
  else cout << "Rabbit" << endl;
  return 0;
}
```