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

long long int kansu( string s, long long int k ) {

  if ( s[k] != 'm' ) return -1;
  k++;
  if ( s[k] == 'm' ) k = kansu( s, k );
  if ( k == -1 ) return -1;
  if ( s[k] != 'e' ) return -1;
  k++;
  if ( s[k] == 'm' ) k = kansu( s, k );
  if ( k == -1 ) return -1;
  if ( s[k] != 'w' ) return -1;

  return k + 1;

}

int main() {

  string s;
  cin >> s;

  if ( kansu( s, 0LL ) == s.size() ) {
    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>
using namespace std;

long long int kansu( string s, long long int k ) {

  if ( s[k] != 'm' ) return -1;
  k++;
  if ( s[k] == 'm' ) k = kansu( s, k );
  if ( k == -1 ) return -1;
  if ( s[k] != 'e' ) return -1;
  k++;
  if ( s[k] == 'm' ) k = kansu( s, k );
  if ( k == -1 ) return -1;
  if ( s[k] != 'w' ) return -1;

  return k + 1;

}

int main() {

  string s;
  cin >> s;

  if ( kansu( s, 0LL ) == s.size() ) {
    cout << "Cat" << endl;
  }else {
    cout << "Rabbit" << endl;
  }


  return 0;

}
```