#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  int n;
  int i, j;
  cin >> n;
  while (n--) {
    cin >> s;
    int find0 = 0;
    int find2 = 0;
    int sum = 0, sum0 = 0;
    if (s == "0") {
      printf("red\n");
      continue;
    }
    for (i = 0; i < s.length(); i++) {
      if (s[i] == '0') {
        find0 = 1;
        sum0++;
      }
      if ((s[i] - '0') > 0 && (s[i] - '0') % 2 == 0) find2 = 1;
      sum += (s[i] - '0');
    }
    if (find0 == 1 && (sum0 > 1 || find2 == 1) && sum % 3 == 0)
      printf("red\n");
    else
      printf("cyan\n");
  }
  return 0;
}
