#include <bits/stdc++.h>
using namespace std;
void in(long long *a, long long n) {
  for (long long i = 1; i < n + 1; i++) {
    cin >> a[i];
  }
}
void out(long long *a, long long n) {
  for (long long i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
}
void out(vector<long long> v) {
  for (long long i = 0; i < (long long)v.size(); i++) cout << v[i] << " ";
}
void out(long long a) { cout << a; }
void out(string s) { cout << s; }
void fast() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main() {
  long long n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    long long k = s.length();
    long long flag = 0, flag1 = 0, flag2 = 0;
    long long sum = 0;
    if (s == "0") {
      cout << "red\n";
      continue;
    }
    for (long long i = 0; i < k; i++) {
      long long w = s[i] - 48;
      sum = sum + w;
      if (w == 0) {
        flag++;
      }
      if (w % 2 == 0 && w != 0) {
        flag1 = 1;
      }
    }
    if (flag > 1 && (sum % 3 == 0)) {
      cout << "red\n";
    } else {
      if (sum % 3 == 0 && flag == 1 && flag1 == 1) {
        cout << "red\n";
      } else {
        cout << "cyan\n";
      }
    }
  }
}
