#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string str;
    cin >> str;
    int n = str.size(), sum = 0, z = 0, e = 0;
    for (int i = 0; i < n; i++) {
      sum = sum + str[i] - 48;
      if (str[i] == '0') z++;
      if (str[i] % 2 == 0) e++;
    }
    if (z > 0 && e > 1 && sum % 3 == 0)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
  return 0;
}
