#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int x = s.length();
    int fz = 0, fe = 0;
    long long int sum = 0;
    for (int i = 0; i < x; i++) {
      int a = s[i] - '0';
      sum += a;
      if (a % 2 == 0 && a == 0 && fz == 0) {
        fz++;
        continue;
      }
      if (a % 2 == 0) fe++;
    }
    if (fz && fe && sum % 3 == 0) {
      cout << "red" << endl;
    } else {
      cout << "cyan" << endl;
    }
  }
}
