#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    string x;
    cin >> x;
    long long z = 0;
    long long eve = 0;
    long long sum = 0;
    long long c = 0;
    for (long long j = 0; j < x.length(); j++) {
      long long dig = (x[j] - '0');
      if (dig == 0) {
        z = 1;
        c++;
        continue;
      }
      sum += dig;
      if (dig % 2 == 0) eve = 1;
    }
    if (c > 1) eve = 1;
    if (z && eve && (sum % 3 == 0))
      cout << "red" << '\n';
    else
      cout << "cyan" << '\n';
  }
}
