#include <bits/stdc++.h>
using namespace std;
int a[107];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    memset(a, 0, sizeof(a));
    string s;
    cin >> s;
    int sum = 0, cnt = 0, flag = 0;
    for (int i = 0; i < s.size(); ++i) {
      a[i] = s[i] - '0';
    }
    for (int i = 0; i < s.size(); ++i) {
      if (a[i] % 2 == 0) {
        ++cnt;
      }
      if (a[i] == 0) {
        flag = 1;
      }
      sum += a[i];
    }
    if (sum % 3 == 0 && cnt >= 2 && flag)
      cout << "red\n";
    else
      cout << "cyan\n";
  }
  return 0;
}
