#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  for (int t = 0; t < T; t++) {
    string s;
    cin >> s;
    int flag0 = 0, flag2 = 0, sum = 0;
    for (int i = 0; i < s.size(); i++) {
      int digit = s[i] - '0';
      sum += digit;
      if (digit == 0)
        flag0++;
      else if (digit % 2 == 0)
        flag2++;
    }
    if (sum % 3 == 0) {
      if (flag0 > 0) {
        if (flag0 > 1 || flag2 > 0)
          cout << "red\n";
        else
          cout << "cyan\n";
      } else
        cout << "cyan\n";
    } else
      cout << "cyan\n";
  }
  return 0;
}
