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