#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
long long int gcd(long long int a, long long int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long int lcm(long long int a, long long int b) {
  return a * b / gcd(a, b);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int flag0 = 0, flag2 = 0, sum = 0;
    for (long long int i = 0; i < s.length(); i++) {
      if ((s[i] == '0') && (flag0 == 0))
        flag0 = 1;
      else if (int(s[i] - '0') % 2 == 0)
        flag2 = 1;
      sum += int(s[i] - '0');
    }
    if ((flag0) && (flag2) && (sum % 3 == 0))
      cout << "red"
           << "\n";
    else
      cout << "cyan"
           << "\n";
  }
  return 0;
}
