#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long a = 0, b = 0, c = 0;
    for (long long i = 0; i < s.size(); i++) {
      if (s[i] == '0') a = 1;
      if ((s[i] - '0') % 2 == 0) b++;
      c += (s[i] - '0');
    }
    if (c % 3 == 0 && a == 1 && b > 1)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
  return 0;
}
