#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int l = s.length();
    bool c0 = false, even = false;
    int sum = 0;
    for (int i = 0; i < l; i++) {
      int s0 = s[i] - '0';
      if (s0 == 0 && c0 == false)
        c0 = true;
      else {
        sum += s0;
        if (s0 % 2 == 0) even = true;
      }
    }
    if (even == true && sum % 3 == 0 && c0 == true)
      cout << "red\n";
    else
      cout << "cyan\n";
  }
}
