#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
void solve() {
  string S;
  cin >> S;
  int even = 0;
  int zero = 0;
  int sum = 0;
  for (auto c : S) {
    if ((int)(c - '0') % 2 == 0) even++;
    if (c == '0') zero++;
    sum += c - '0';
  }
  if (even >= 2 and zero >= 1 and sum % 3 == 0) {
    cout << "red" << endl;
  } else {
    cout << "cyan" << endl;
  }
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int T;
  cin >> T;
  while (T--) solve();
  return 0;
}
