#include <bits/stdc++.h>
using namespace std;
const long long INF = LONG_LONG_MAX;
const long long NINF = LONG_LONG_MIN;
const long long mmod = 998244353;
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    string s;
    cin >> s;
    long long zero = 0;
    for (char c : s)
      if (c == '0') zero++;
    if (zero > 0) {
      bool ok = false;
      for (char c : s)
        if (c == '2' || c == '4' || c == '6' || c == '8') ok = true;
      if (zero > 1) ok = true;
      long long sum = 0;
      for (char c : s) sum += c - '0';
      if (ok && sum % 3 == 0)
        cout << "red" << endl;
      else
        cout << "cyan" << endl;
    } else
      cout << "cyan" << endl;
  }
}
