#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, n, m, x = 0, y, z;
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int zero = 0, even = 0;
    x = 0;
    z = 0;
    y = 0;
    for (i = 0; i < s.size(); i++) {
      y = (s[i] - 48);
      if (y == 0) {
        zero++;
      }
      x = x + y;
      if (y % 2 == 0) {
        even++;
      }
    }
    if (even > 1 && x % 3 == 0 && zero > 0) {
      cout << "red" << endl;
    } else {
      cout << "cyan" << endl;
    }
  }
}
