#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, i, j, k, l;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    long long int sz = s.size();
    int flag = 0;
    long long int co = 0;
    for (i = 0; i < sz; i++) {
      if (s[i] == '0') {
        flag = 1;
        co++;
      }
    }
    if (flag == 0) {
      cout << "cyan" << endl;
    } else {
      flag = 0;
      for (i = 0; i < sz; i++) {
        if ((s[i] - '0') % 2 == 0 && s[i] != '0') {
          flag = 1;
          break;
        }
      }
      if (flag == 0 && co <= 1) {
        cout << "cyan" << endl;
      } else {
        long long int sum = 0;
        for (i = 0; i < sz; i++) {
          sum += (s[i] - '0');
        }
        if (sum % 3 == 0) {
          cout << "red" << endl;
        } else
          cout << "cyan" << endl;
      }
    }
  }
  return 0;
}
