#include <iostream>
#include <string>
using namespace std;
int main(){
  string S;
  cin >> S;
  int l = (int)S.size(), t = 0;
  string T = "";
  for(int i = 0; i < l; ++i){
    if(S[i] != 'w'){
      T += S[i];
      ++t;
    }else{
      if(t >= 2 && T[t-2] == 'm' && T[t-1] == 'e'){
	T.erase(T.end()-2,T.end());
	t -= 2;
      }else{
	cout << "Rabbit" << endl;
	return 0;
      }
    }
    if(i < l-1 && T == ""){
      cout << "Rabbit" << endl;
      return 0;
    }
    //cout << T << endl;
  }
  if(T == "") 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;
int main(){
  string S;
  cin >> S;
  int l = (int)S.size(), t = 0;
  string T = "";
  for(int i = 0; i < l; ++i){
    if(S[i] != 'w'){
      T += S[i];
      ++t;
    }else{
      if(t >= 2 && T[t-2] == 'm' && T[t-1] == 'e'){
	T.erase(T.end()-2,T.end());
	t -= 2;
      }else{
	cout << "Rabbit" << endl;
	return 0;
      }
    }
    if(i < l-1 && T == ""){
      cout << "Rabbit" << endl;
      return 0;
    }
    //cout << T << endl;
  }
  if(T == "") cout << "Cat" << endl;
  else cout << "Rabbit" << endl;
  return 0;
}
```