#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    long cnt = 0, sum = 0, cnt_e = 0;
    for (long i = 0; i < s.size(); i++) {
      if (s[i] - '0')
        sum += (s[i] - '0');
      else
        cnt++;
      if ((s[i] - '0') % 2 == 0) cnt_e++;
    }
    if (cnt == 0 || sum % 3)
      cout << "cyan\n";
    else {
      if (cnt == 1 && cnt_e == 1)
        cout << "cyan\n";
      else
        cout << "red\n";
    }
  }
}
