#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main(int argc, char const *argv[]) {
  int n, test, x, y, a, b, c, d;
  string s, t;
  cin >> test;
  while (test--) {
    cin >> s;
    int hash[9] = {0};
    int zero = 0, sum = 0, two = 0, three = 0;
    for (int i = 0; i < s.size(); ++i) {
      hash[s[i] - 48]++;
      if ((s[i] - 48) == 0) zero++;
      sum += (s[i] - 48);
    }
    hash[0]--;
    for (int i = 0; i < 9; ++i) {
      if (i % 2 == 0 && hash[i] > 0) two++;
    }
    if (sum % 3 == 0 && two > 0 && zero > 0)
      cout << "red" << '\n';
    else
      cout << "cyan" << '\n';
  }
  return 0;
}
