#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  int n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    int tot = 0;
    for (auto x : s) tot += (x - '0');
    if (tot % 3 != 0) {
      cout << "cyan\n";
      continue;
    }
    int cnt = count(s.begin(), s.end(), '0');
    int div = 0;
    for (auto x : s) {
      if (x != '0' && (x - '0') % 2 == 0) ++div;
    }
    if (div > 0) {
      if (cnt == 0) {
        cout << "cyan\n";
        continue;
      }
    } else {
      if (cnt <= 1) {
        cout << "cyan\n";
        continue;
      }
    }
    cout << "red\n";
  }
  return 0;
}
