#include <bits/stdc++.h>
using namespace std;
template <typename T, typename U>
void amin(T& a, U b) {
  if (a > b) a = b;
}
template <typename T, typename U>
void amax(T& a, U b) {
  if (a < b) a = b;
}
const long long INF = 1e18;
const int32_t M = 1e9 + 7;
void solve() {
  string s;
  cin >> s;
  vector<long long> v;
  for (long long i = 0; i < s.length(); i++) {
    v.push_back(s[i] - '0');
  }
  long long su = (accumulate((v).begin(), (v).end(), 0ll));
  if (su % 3) {
    cout << "cyan"
         << "\n";
    return;
  }
  (sort((v).begin(), (v).end()));
  long long c = 0;
  for (long long i = 0; i < v.size(); i++)
    if (v[i] == 0) c++;
  if (c > 1) {
    cout << "red"
         << "\n";
    return;
  }
  if (c == 0) {
    cout << "cyan"
         << "\n";
    return;
  }
  for (long long i = 0; i < s.length(); i++)
    if (v[i] % 2 == 0 && v[i] != 0) {
      cout << "red"
           << "\n";
      return;
    }
  cout << "cyan"
       << "\n";
}
void input() {}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  input();
  int i = 1;
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
