//23
#include<iostream>

using namespace std;

char s[501];
int x;
bool f;

void chk(){
  if(s[x]!='m')return;
  x++;
  chk();
  f|=s[x++]!='e';
  chk();
  f|=s[x++]!='w';
}

int main(){
  cin>>s;
  chk();
  cout<<((!s[x]&&!f)?"Cat":"Rabbit")<<endl;
  return 0;
}
### Prompt

Construct a CPP code solution to the problem outlined:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
//23
#include<iostream>

using namespace std;

char s[501];
int x;
bool f;

void chk(){
  if(s[x]!='m')return;
  x++;
  chk();
  f|=s[x++]!='e';
  chk();
  f|=s[x++]!='w';
}

int main(){
  cin>>s;
  chk();
  cout<<((!s[x]&&!f)?"Cat":"Rabbit")<<endl;
  return 0;
}
```