#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  string s;
  for (long long i = 0; i < n; i++) {
    cin >> s;
    long long zero = 0, even = 0, three = 0;
    for (long long j = 0; j < s.size(); j++) {
      if (s[j] == '0') {
        if (zero != 0) even = 1;
        zero++;
      } else {
        if ((s[j] - '0') % 2 == 0) even = 1;
        three += s[j] - '0';
      }
    }
    if (zero > 0 && even && three % 3 == 0)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) solve();
  return 0;
}
