#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  unsigned long long n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    unsigned long long zero = 0, even = 0;
    unsigned long long sum = 0;
    for (int i = 0; i < s.length(); ++i) {
      unsigned long long x = (int)s[i] - (int)'0';
      if (x % 2 == 0) even++;
      if (x == 0) zero++;
      sum = sum + x;
    }
    if (sum % 3 == 0 && zero > 0 && even > 1)
      cout << "red\n";
    else
      cout << "cyan\n";
  }
  return 0;
}
