#include <bits/stdc++.h>
using namespace std;
const long long N = 1e5 + 5;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long sum = 0, have = 0, even = 0;
    for (auto &it : s) {
      sum += (it - '0');
      have += (it == '0');
      even += ((it - '0') % 2 == 0);
    }
    if (sum == 0) {
      cout << "red"
           << "\n";
      continue;
    }
    if (sum % 3 == 0 && have && even > 1)
      cout << "red"
           << "\n";
    else
      cout << "cyan"
           << "\n";
  }
  return 0;
}
