#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    string s;
    cin >> s;
    int ten = 0;
    int two = 0;
    int sum = 0;
    for (int i = 0; i < s.size(); i++) {
      if (s[i] == '0' && ten == 0)
        ten = 1;
      else if ((s[i] - 48) % 2 == 0)
        two = 1;
      sum += s[i] - 48;
    }
    if (ten && sum % 3 == 0 && two)
      printf("red\n");
    else
      printf("cyan\n");
  }
  return 0;
}
