#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  cin >> x;
  while (x--) {
    string str;
    cin >> str;
    long long n, b, m, v, finl, finl2;
    finl2 = 0;
    v = 0;
    b = 0;
    m = 0;
    v = 0;
    for (n = 0; n < str.size(); n++) {
      finl = (int)str[n] - 48;
      if (finl == 0)
        b++;
      else if (finl % 2 == 0)
        m++;
      finl2 = finl + finl2;
    }
    if (finl2 % 3 == 0) v = 1;
    if (b >= 2 && v == 1 || b >= 1 && m >= 1 && v == 1)
      cout << "red";
    else
      cout << "cyan";
    cout << endl;
  }
  return 0;
}
