#include <bits/stdc++.h>
using namespace std;
int main() {
  char gg[107];
  int n;
  cin >> n;
  while (n--) {
    scanf("%s", gg);
    int len = strlen(gg);
    int th = 0, zr = 0, ev = 0;
    int sum = 0;
    for (int i = 0; i < len; ++i) {
      sum += gg[i] - '0';
      if (gg[i] == '0') zr = 1;
      if (!(gg[i] & 1)) ev++;
    }
    if (sum % 3 == 0) th = 1;
    if (th && zr && ev >= 2)
      printf("red\n");
    else
      printf("cyan\n");
  }
  return 0;
}
