#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    int szs = s.size();
    bool z = 0, e = 0;
    int sum = 0;
    for (int i = 0; i < szs; i++) {
      sum += s[i] - '0';
      e |= (!((s[i] - '0') & 1) & (!!(s[i] - '0') | z));
      z |= (s[i] == '0');
    }
    if (sum == 0 || (z && e && !(sum % 3)))
      cout << "red\n";
    else
      cout << "cyan\n";
  }
}
