#include <bits/stdc++.h>
using namespace std;
int t;
string s;
int func() {
  int i, j, k = 0, l = 0, san, u = 0;
  for (i = 0; i < s.length(); i++) {
    san = (int)s[i] - 48;
    if (san == 0) l++;
    if (san != 0 && (san * 10) % 4 == 0) u = 1;
    k = k + san;
  }
  if (l == 0) return 0;
  if (k % 3 != 0) return 0;
  if ((l > 1 || (l == 1 && u == 1)) && k % 3 == 0) return 1;
  return 0;
}
int main() {
  cin >> t;
  int k;
  while (t--) {
    cin >> s;
    k = func();
    if (k == 1) {
      cout << "red" << endl;
    } else {
      cout << "cyan" << endl;
    }
  }
  return 0;
}
