#include <iostream>
using namespace std;

int idx;
string s;

bool isCat(){
  if(s[idx] != 'm') return idx != 0;
  idx++;
  if(!isCat()) return false;
  if(s[idx++] != 'e') return false;
  if(!isCat()) return false;
  if(s[idx++] != 'w') return false;

  return true;
}

int main(){
  while(cin >> s){
    idx = 0;
    cout << (isCat() && idx == s.size() ? "Cat" : "Rabbit") << endl;
  }
}
### Prompt

Your task is to create a cpp solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

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

int idx;
string s;

bool isCat(){
  if(s[idx] != 'm') return idx != 0;
  idx++;
  if(!isCat()) return false;
  if(s[idx++] != 'e') return false;
  if(!isCat()) return false;
  if(s[idx++] != 'w') return false;

  return true;
}

int main(){
  while(cin >> s){
    idx = 0;
    cout << (isCat() && idx == s.size() ? "Cat" : "Rabbit") << endl;
  }
}
```