#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 100;
long long int v[N];
inline void outv(vector<long long int> v) {
  for (long long int i = 0; i < v.size(); i++) {
    cout << v[i] << " ";
  }
  cout << "\n";
}
inline long long int pow(long long int x, long long int n) {
  long long int ans = 1;
  while (n > 0) {
    if (n & 1) ans *= x;
    x *= x;
    n >>= 1;
  }
  return ans;
}
int solve() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ;
  string n;
  cin >> n;
  int even = 0;
  int s = 0;
  int z = 0;
  for (auto c : n) {
    if ((c) % 2 == 0) even++;
    s += c - '0';
    if (c == '0') z++;
  }
  if (s % 3 == 0 && even > 1 && z > 0) return cout << "red" << '\n', 0;
  ;
  return cout << "cyan" << '\n', 0;
  ;
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ;
  int t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
