#include <bits/stdc++.h>
int main() {
  int t, i, count_even, digit_sum, count_zero, temp;
  scanf("%d\n", &t);
  while (t--) {
    char number[1000];
    count_even = 0;
    digit_sum = 0;
    count_zero = 0;
    scanf("%s", number);
    for (i = 0; number[i] != '\0'; i++) {
      digit_sum += (number[i] - 48);
      temp = number[i] - 48;
      if (temp % 2 == 0) count_even++;
      if (temp == 0) count_zero++;
    }
    if (digit_sum % 3 == 0 && count_even >= 2 && count_zero >= 1)
      printf("red\n");
    else
      printf("cyan\n");
  }
  return 0;
}
