#include <bits/stdc++.h>
using namespace std;
char s[200005];
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  while (n--) {
    cin >> s;
    int cnt = 0, has_zero = 0, has_even = 0;
    for (int i = 0; s[i]; ++i) {
      int k = s[i] - '0';
      cnt += k;
      has_zero += k == 0;
      has_even += (k != 0) && (!(k % 2));
    }
    if (cnt == 0) {
      cout << "red\n";
      continue;
    }
    if (cnt % 3 == 0 && has_zero + has_even >= 2 && has_zero)
      cout << "red\n";
    else
      cout << "cyan\n";
  }
}
