#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const int mod = 1e9 + 7;
const int iinf = 1e9 + 10;
const int xd[4] = {1, 0, -1, 0}, yd[4] = {0, 1, 0, -1};
void solve() {
  string s;
  int a = 0, b = 0, c = 0;
  cin >> s;
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == '0') b++;
    if ((s[i] - '0') % 2 == 0) c++;
    a += s[i] - '0';
  }
  if (b < 1) {
    cout << "cyan\n";
    return;
  }
  c--;
  if (a % 3 == 0 && c) {
    cout << "red\n";
  } else
    cout << "cyan\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  while (n--) {
    solve();
  }
}
