#include <bits/stdc++.h>
using namespace std;
long long int max(long long int a, long long int b) { return (a >= b ? a : b); }
long long int min(long long int a, long long int b) { return (a <= b ? a : b); }
void solve_code() {
  long long int n, x;
  cin >> n;
  string s;
  for (int(i) = 0; (i) < n; (i)++) {
    cin >> s;
    int flag = 0;
    long long int sum = 0;
    long long int count = 0, temp = 0;
    x = s.length();
    for (int(j) = 0; (j) < x; (j)++) {
      if (s[j] == '0') {
        flag = 1;
        count++;
      } else if ((s[j] - '0') > 0 && (s[j] - '0') % 2 == 0) {
        count++;
      }
      sum += s[j] - '0';
    }
    if (sum % 3 == 0) {
      if (flag == 1 && count >= 2)
        cout << "red";
      else
        cout << "cyan";
    } else
      cout << "cyan";
    cout << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int test = 1;
  while (test--) {
    solve_code();
  }
  return 0;
}
