import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.stdio;

void main() {
    auto T = readln.chomp.to!int;
    auto cnt = new int[](10);
    while (T--) {
        cnt[] = 0;
        auto S = readln.chomp;
        auto N = S.length.to!int;
        int zero = 0;
        int even = 0;
        int div3 = 0;
        foreach (i; 0..N) {
            int d = S[i]-'0';
            if (d == 0) zero += 1;
            if (d % 2 == 0) even += 1;
            div3 = (div3 + d) % 3;
        }
        if (zero >= 1 && even >= 2 && div3 == 0) {
            writeln("red");
        } else {
            writeln("cyan");
        }
    }
}