#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e2 + 7;
const int inf = 0x3f3f3f3f;
int t, n;
int a[maxn];
char s[maxn];
int main() {
  cin >> t;
  while (t--) {
    scanf("%s", s + 1);
    n = strlen(s + 1);
    int ou = 0, sum = 0, zero = 0;
    int mark = -1;
    for (int i = 1; i <= n; i++) {
      int num = s[i] - '0';
      if (num == 0) {
        zero = 1;
        mark = i;
      }
      sum += num;
    }
    if (sum % 3 != 0 || zero == 0) {
      printf("cyan\n");
      continue;
    }
    if (sum == 0) {
      printf("red\n");
      continue;
    }
    for (int i = 1; i <= n; i++) {
      int num = s[i] - '0';
      if (num % 2 == 0 && i != mark) {
        ou = 1;
        break;
      }
    }
    if (ou == 1) {
      printf("red\n");
      continue;
    } else {
      printf("cyan\n");
      continue;
    }
  }
}
