#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  int even = 0, check = 0;
  int n = s.length();
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    int a = (int)(s[i] - '0');
    if (check == 0 && a == 0)
      check = 1;
    else if (a % 2 == 0)
      even = 1;
    sum += a;
  }
  if (sum == 0)
    cout << "red\n";
  else if (sum % 3 == 0 && even && check)
    cout << "red\n";
  else
    cout << "cyan\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
