#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define it ::iterator
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double ESP=1e-10;
using namespace std;
int main(){
  string s;
  cin>>s;
  while(s.size()>3){
    bool h=false;
    loop(i,3,s.size()){
      if((s[i-3]=='m'||s[i-3]=='e')&&s.substr(i-2,3)=="mew"){
	h=true;
	s=s.substr(0,i-2)+s.substr(i+1,s.size()-i-1);
	break;
      }
    }
    if(!h)break;
  }
  string ans="Rabbit";
  if(s=="mew")ans="Cat";
  cout<<ans<<endl;
}
### Prompt

Your challenge is to write a cpp solution to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstdio>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define pb push_back
#define mp make_pair
#define it ::iterator
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double ESP=1e-10;
using namespace std;
int main(){
  string s;
  cin>>s;
  while(s.size()>3){
    bool h=false;
    loop(i,3,s.size()){
      if((s[i-3]=='m'||s[i-3]=='e')&&s.substr(i-2,3)=="mew"){
	h=true;
	s=s.substr(0,i-2)+s.substr(i+1,s.size()-i-1);
	break;
      }
    }
    if(!h)break;
  }
  string ans="Rabbit";
  if(s=="mew")ans="Cat";
  cout<<ans<<endl;
}
```