#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sd, c;
  string s;
  bool p, m;
  cin >> n;
  while (n--) {
    c = 0;
    sd = 0;
    p = false;
    m = false;
    cin >> s;
    if (s == "0") {
      cout << "red" << endl;
    } else {
      for (int i = 0; i < s.size(); i++) {
        if (s[i] - 48 == 0) {
          c++;
        }
        if (s[i] - 48 > 0 && (s[i] - 48) % 2 == 0) {
          p = true;
        }
        sd += s[i] - 48;
      }
      if (sd % 3 == 0) {
        m = true;
      }
      if ((p && m && c > 0) || (m && c > 1)) {
        cout << "red" << endl;
      } else {
        cout << "cyan" << endl;
      }
    }
  }
  return 0;
}
