#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  for (int j = 0; j < n; j++) {
    string s;
    cin >> s;
    long long count = 0, sum = 0, count1 = 0;
    for (int i = 0; i < s.length(); i++) {
      if ((s[i] - 48) % 2 == 0 && (s[i] - 48) != 0) count++;
      if ((s[i] - 48) == 0) count1++;
      sum += (s[i] - 48);
    }
    if (sum % 3 == 0) {
      if (count1 > 1) {
        cout << "red"
             << "\n";
      } else {
        if (count1 == 1) {
          if (count > 0)
            cout << "red"
                 << "\n";
          else
            cout << "cyan"
                 << "\n";
        } else {
          cout << "cyan\n";
        }
      }
    } else
      cout << "cyan"
           << "\n";
  }
}
