#include <bits/stdc++.h>
using namespace std;
string form;
int mark[11];
void solve() {
  cin >> form;
  bool divisible_by_two = false, zeros = false;
  int length = form.size();
  int sums_num = 0;
  for (int i = 0; i < 10; i++) mark[i] = 0;
  for (int i = 0; i < length; i++) {
    mark[form[i] - '0']++;
    sums_num += form[i] - '0';
  }
  if (mark[0]) zeros = true, mark[0]--;
  for (int i = 0; i < 10; i += 2)
    if (mark[i]) divisible_by_two = true;
  if (divisible_by_two && zeros && (sums_num % 3 == 0))
    printf("red\n");
  else
    printf("cyan\n");
}
int main() {
  int tester;
  scanf("%d", &tester);
  while (tester--) solve();
}
