#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  while (n > 0) {
    n--;
    string s;
    int sum = 0, fl = 0, fl2 = 0;
    cin >> s;
    sort(s.begin(), s.end());
    for (int i = 0; i < s.size(); i++) {
      if (fl == 1 && (s[i] - '0') % 2 == 0) {
        fl2 = 1;
      }
      if (s[i] == '0') fl = 1;
      sum += s[i] - '0';
    }
    if (sum % 3 == 0 && fl + fl2 == 2)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
}
