#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int n, i, j, k, sum = 0, ev = 0, ze = 0;
    string s;
    cin >> s;
    n = s.length();
    for (i = 0; i < n; i++) {
      sum = sum + s[i] - '0';
      if ((s[i] - '0') % 2 == 0) ev++;
      if (s[i] - '0' == 0) ze++;
    }
    if (ze == 0)
      cout << "cyan" << endl;
    else {
      if (ev < 2)
        cout << "cyan" << endl;
      else {
        if (sum % 3 == 0)
          cout << "red" << endl;
        else
          cout << "cyan" << endl;
      }
    }
  }
}
