#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int sum = 0, e = 0, z = 0;
    for (int i = 0; i < s.size(); i++) {
      sum += s[i] - '0';
      e += (s[i] - '0') % 2 == 0;
      z += s[i] == '0';
    }
    cout << ((sum % 3 == 0 && e >= 2 && z > 0) ? "red" : "cyan") << endl;
  }
}
