#include <bits/stdc++.h>
using namespace std;
int n;
int freq[20];
string s;
int main() {
  cin >> n;
  for (int k = 0; k < n; k++) {
    cin >> s;
    memset(freq, 0, sizeof(freq));
    int sum = 0;
    for (int i = 0; i < s.size(); i++) {
      freq[s[i] - '0']++;
      sum += s[i] - '0';
    }
    if (sum % 3 != 0) {
      printf("cyan\n");
      continue;
    }
    freq[0]--;
    int qtdEven = 0;
    for (int i = 0; i < 10; i += 2) qtdEven += freq[i];
    if (freq[0] == -1 || qtdEven == 0)
      printf("cyan\n");
    else
      printf("red\n");
  }
}
