#include <bits/stdc++.h>
using namespace std;
void swap(long long &a, long long &b) {
  auto tm = a;
  a = b;
  b = tm;
}
const long long mod = 1000000007;
const long long mod2 = 998244353;
const long long INF = (1LL << 50) - 1;
const long long N = 2e5 + 25;
void bheja_fry() {
  string s;
  cin >> s;
  long long sm = 0, f = 0, k = 0;
  for (auto &(i) : (s)) {
    if (i == '0')
      f++;
    else {
      if ((i - '0') % 2 == 0) k++;
    }
    sm += i - '0';
  }
  if (sm % 3 == 0 && f && (f >= 2 || k))
    cout << "red";
  else
    cout << "cyan";
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  cin >> t;
  for (long long(i) = (1); (i) < (t + 1); ++(i)) {
    bheja_fry();
    if (i < t) cout << "\n";
  }
  return 0;
}
