#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int cnt = 0;
    bool zero = false, two = false;
    string str;
    cin >> str;
    for (int i = 0; i < str.length(); i++) {
      if (str[i] == '0' && zero == false)
        zero = true;
      else if ((str[i] - '0') % 2 == 0)
        two = true;
      cnt += (str[i] - '0');
    }
    if (cnt % 3 == 0 && zero && two)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
}
