#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N, i, j, fz, dig, digSum, ev;
  string str;
  cin >> N;
  vector<string> V;
  for (i = 0; i < N; i++) {
    cin >> str;
    V.push_back(str);
    fz = 0;
    digSum = 0;
    ev = 0;
    for (j = 0; j < V[i].length(); j++) {
      dig = (V[i][j] - 48);
      if (dig == 0) {
        fz++;
      }
      if (dig % 2 == 0) {
        ev++;
      }
      digSum += dig;
    }
    if (fz == 1) {
      if (ev > 1 && digSum % 3 == 0) {
        cout << "red" << endl;
      } else {
        cout << "cyan" << endl;
      }
    } else if (fz > 1 && digSum % 3 == 0) {
      cout << "red" << endl;
    } else {
      cout << "cyan" << endl;
    }
  }
  return 0;
}
