#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    string a;
    cin >> a;
    int ACC = 0;
    for (int j = 0; j < a.size(); j++) {
      if (a[j] == '0') {
        ACC++;
        string now = a.substr(0, j);
        now += a.substr(j + 1, a.size() - j + 1);
        a = now;
        break;
      }
    }
    if (ACC == 0) {
      cout << "cyan" << endl;
    } else {
      int total = 0;
      for (int j = 0; j < a.size(); j++) {
        total += a[j] - '0';
      }
      if (total % 3 == 0) {
        int ADD = 0;
        for (int j = 0; j < a.size(); j++) {
          if ((a[j] - '0') % 2 == 0) {
            ADD++;
            break;
          }
        }
        if (ADD == 0) {
          cout << "cyan" << endl;
        } else {
          cout << "red" << endl;
        }
      } else {
        cout << "cyan" << endl;
      }
    }
  }
}
