#include <bits/stdc++.h>
using namespace std;
int i, j, k, n, m, x[10];
string s;
int main() {
  std::cin.sync_with_stdio(false);
  std::cin.tie(0);
  cin >> n;
  i = 0;
  while (i < n) {
    cin >> s;
    j = 0;
    int sk = 0;
    while (j < s.length()) {
      x[s[j] - '0']++;
      sk += s[j] - '0';
      j++;
    }
    if (x[0] > 0 && sk % 3 == 0) {
      if (x[0] > 1 || x[2] || x[4] || x[6] || x[8]) {
        cout << "red\n";
      } else {
        cout << "cyan\n";
      }
    } else {
      cout << "cyan\n";
    }
    j = 0;
    while (j < 10) {
      x[j] = 0;
      j++;
    }
    i++;
  }
  return 0;
}
