#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int zero = 0, par = 0, soma = 0;
    string s;
    cin >> s;
    for (int j = 0; j < s.size(); j++) {
      soma += (s[j] - '0');
      if ((s[j] - '0') % 2 == 0) par++;
      if ((s[j] - '0') == 0) zero++;
    }
    if (par > 1 && zero > 0 && soma % 3 == 0)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
}
