#define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; double w; };

ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;

bool foo(string& s, int& i) {
	if (s[i] != 'm') return false;
	i++;
	if (s[i] != 'e') 
		if (!foo(s, i) || s[i] != 'e')
			return false;
	i++;
	if (s[i] != 'w') 
		if (!foo(s, i) || s[i] != 'w')
			return false;
	i++;
	return true;
}

int main() {
	string S; cin >> S;
	string s = S + "unko";
	int i = 0;
	cout << (foo(s, i) && i == S.length() ? "Cat" : "Rabbit") << endl;
}
### Prompt

Please create a solution in cpp to the following problem:

Example

Input

mmemewwemeww


Output

Cat

### Response

```cpp
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; double w; };

ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;

bool foo(string& s, int& i) {
	if (s[i] != 'm') return false;
	i++;
	if (s[i] != 'e') 
		if (!foo(s, i) || s[i] != 'e')
			return false;
	i++;
	if (s[i] != 'w') 
		if (!foo(s, i) || s[i] != 'w')
			return false;
	i++;
	return true;
}

int main() {
	string S; cin >> S;
	string s = S + "unko";
	int i = 0;
	cout << (foo(s, i) && i == S.length() ? "Cat" : "Rabbit") << endl;
}
```