#include <bits/stdc++.h>
using namespace std;
void FASTIO() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
long long n;
string s;
void solve() {
  cin >> s;
  n = s.length();
  bool zero = false, three = false, even = false;
  long long e = 0;
  long long sum = 0;
  for (long long i = 0; i < n; i++) {
    sum += (s[i] - '0');
    if (s[i] == '0') zero = true;
    if ((s[i] - '0') % 2 == 0) e++;
  }
  three = (sum % 3 == 0 ? true : false);
  even = (e >= 2 ? true : false);
  if (zero && three && even)
    cout << "red"
         << "\n";
  else
    cout << "cyan"
         << "\n";
}
int32_t main() {
  FASTIO();
  long long t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
