#include <bits/stdc++.h>
#pragma warning(disable : 6031)
const int MAX = 2e2 + 1;
const int MAXN = 1e6 + 10;
const int MOD = 1e9 + 7;
using namespace std;
char str[MAX];
int main() {
  int ks;
  scanf("%d", &ks);
  while (ks--) {
    scanf("%s", str + 1);
    int len = strlen(str + 1);
    int zero = 0;
    int sum = 0;
    int even = 0;
    for (int i = 1; i <= len; i++) {
      if (str[i] == '0') {
        zero++;
      }
      if (str[i] != '0' && (str[i] - '0') % 2 == 0) even++;
      sum += str[i] - '0';
    }
    if (zero == 0) {
      puts("cyan");
    } else if (zero == 1) {
      if (sum % 3 == 0 && even > 0) {
        puts("red");
      } else {
        puts("cyan");
      }
    } else {
      if (sum % 3 == 0) {
        puts("red");
      } else {
        puts("cyan");
      }
    }
  }
  return 0;
}
