#include <bits/stdc++.h>
const int inf = 1500000000;
const int d = 1e9 + 7;
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int flag = 0;
    for (int i = 0; i < s.size(); i++) {
      if (s[i] != '0') {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cout << "red" << endl;
      continue;
    }
    int digi = 0;
    for (int i = 0; i < s.size(); i++) {
      digi += (s[i] - '0');
    }
    if (digi % 3 != 0) {
      cout << "cyan" << endl;
      continue;
    }
    int even = 0;
    int zero = 0;
    for (int i = 0; i < s.size(); i++) {
      if (s[i] == '0') zero++;
      if (s[i] == '2' || s[i] == '4' || s[i] == '6' || s[i] == '8') even++;
    }
    if (zero >= 2) {
      cout << "red" << endl;
      continue;
    }
    if (zero == 1 && even >= 1) {
      cout << "red" << endl;
      continue;
    } else {
      cout << "cyan" << endl;
    }
  }
  return 0;
}
