#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  int t;
  cin >> t;
  while (t--) {
    cin >> s;
    int sum = 0, c0 = 0, ce = 0;
    for (char i : s) {
      int x = i - '0';
      sum += x;
      if (x == 0) c0++;
      if (x % 2 == 0) ce++;
    }
    if ((sum % 3 == 0 && c0 > 0 && ce >= 2) || sum == 0)
      cout << "red" << endl;
    else
      cout << "cyan" << endl;
  }
  return 0;
}
