#include <bits/stdc++.h>
using namespace std;
int N, len, sum;
int main() {
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    char s[105];
    scanf("%s", s);
    len = strlen(s);
    sum = 0;
    bool zero = false, nonzero = false;
    int even = 0;
    for (int j = 0; j < len; j++) {
      sum += s[j] - '0';
      if (s[j] - '0' == 0)
        zero = true;
      else
        nonzero = true;
      if ((s[j] - '0') % 2 == 0) even++;
    }
    if (sum % 3 == 0 && zero && even > 1 || !nonzero)
      puts("red");
    else
      puts("cyan");
  }
  return 0;
}
