#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, i, x, cnt, sum, tmp;
  cin >> t;
  while (t--) {
    string s;
    cnt = 0, sum = 0, tmp = 0;
    cin >> s;
    for (i = 0; i < s.length(); i++) {
      x = s[i] - '0';
      if (x == 0)
        cnt++;
      else if (x % 2 == 0)
        tmp++;
      sum += (s[i] - '0');
    }
    if (sum == 0) {
      cout << "red" << endl;
      continue;
    }
    if (sum % 3 == 0 && cnt >= 2) {
      cout << "red" << endl;
      continue;
    }
    if (cnt >= 1 && sum % 3 == 0 && tmp >= 1)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
}
