#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string num;
  int zcont = 0;
  int dig;
  bool ev = 0;
  int sum;
  for (auto i = 0; i < n; i++) {
    cin >> num;
    zcont = 0;
    sum = 0;
    ev = 0;
    for (auto c : num) {
      if (!c) {
        break;
      }
      if (c == '0' && !zcont) {
        zcont = 1;
      } else {
        dig = c - '0';
        if (!(c % 2)) {
          ev = 1;
        }
        sum += dig;
      }
    }
    if (zcont && !(sum % 3) && ev) {
      cout << "red" << endl;
    } else {
      cout << "cyan" << endl;
    }
  }
  return 0;
}
