#include <bits/stdc++.h>
using namespace std;
vector<int> to_int_vector(const string &s) {
  vector<int> digits;
  for (int i = 0; i < s.length(); i++) {
    digits.push_back(s[i] - '0');
  }
  return digits;
}
int count_evens(const vector<int> &digits) {
  int cnt = 0;
  for (int i = 0; i < digits.size(); i++) {
    if (digits[i] % 2 == 0) {
      cnt++;
    }
  }
  return cnt;
}
int count_zeros(const vector<int> &digits) {
  int cnt = 0;
  for (int i = 0; i < digits.size(); i++) {
    if (digits[i] == 0) {
      cnt++;
    }
  }
  return cnt;
}
void fail() { cout << "cyan" << endl; }
void success() { cout << "red" << endl; }
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string s;
    cin >> s;
    vector<int> digits = to_int_vector(s);
    if (count_zeros(digits) == 0) {
      fail();
    } else if (count_evens(digits) == 0 ||
               (count_evens(digits) == 1 && count_zeros(digits) == 1)) {
      fail();
    } else if (accumulate(digits.begin(), digits.end(), 0) % 3 != 0) {
      fail();
    } else {
      success();
    }
  }
}
