#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
bool compare(pair<long long, long long> a, pair<long long, long long> b) {
  return a.first < b.first;
}
int main() {
  ios_base::sync_with_stdio(false);
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    bool zero = false;
    bool even = false;
    long long evencount = 0;
    long long sum = 0;
    for (int i = 0; i < s.length(); i++) {
      long long p = s[i] - '0';
      sum += (p);
      if (p == 0) {
        zero = true;
      }
      if (p % 2 == 0 && p != 0) even = true;
      if (p % 2 == 0 && p == 0) evencount++;
    }
    if (sum == 0)
      cout << "red" << endl;
    else if (even && zero && (sum % 3) == 0) {
      cout << "red" << endl;
    } else if (evencount >= 2 && zero && (sum % 3) == 0)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
}
