#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t > 0) {
    int c1 = 0, c2 = 0, s = 0, i;
    string a;
    cin >> a;
    for (i = 0; i < a.length(); i++) {
      s += a[i] - 48;
      if (a[i] == '0') c1++;
      if ((a[i] - 48) % 2 == 0) c2++;
    }
    if ((c1 > 0 && c2 > 1 && s % 3 == 0))
      cout << "red\n";
    else
      cout << "cyan\n";
    --t;
  }
  return 0;
}
