#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, b, c, d, e;
  string a;
  bool zero = false;
  cin >> n;
  while (n--) {
    e = 0;
    zero = false;
    c = 0;
    cin >> a;
    b = a.length();
    for (int i = 0; i < b; i++) {
      d = a[i] - '0';
      c = c + d;
      if (a[i] == '0') {
        zero = true;
        e++;
      } else if (a[i] % 2 == 0) {
        e++;
      }
    }
    if (c % 3 == 0 && zero && e >= 2) {
      cout << "red" << endl;
    } else {
      cout << "cyan" << endl;
    }
  }
}
