#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    int sum = 0;
    bool works = false;
    for (auto i : s) {
      sum += i - '0';
      if (i == '0') works = true;
    }
    if (sum % 3 == 0 && works) {
      int evencounter = 0;
      for (auto i : s) {
        if ((i - '0') % 2 == 0) evencounter++;
      }
      if (evencounter > 1)
        cout << "red";
      else
        cout << "cyan";
    } else {
      cout << "cyan";
    }
    cout << '\n';
  }
}
