#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    long long sum = 0, cnt = 0, zero = 0;
    for (long long i = 0; i < s.size(); i++) {
      sum += (s[i] - '0');
      if (s[i] == '0' && zero == 0)
        zero++;
      else if ((s[i] - '0') % 2 == 0)
        cnt++;
    }
    if (sum % 3 == 0 && zero == 1 && cnt > 0)
      cout << "red" << '\n';
    else
      cout << "cyan" << '\n';
  }
}
