Bob is a competitive programmer. He wants to become red, and for that he needs a strict training regime. He went to the annual meeting of grandmasters and asked $n$ of them how much effort they needed to reach red.

"Oh, I just spent $x_i$ hours solving problems", said the $i$-th of them. 

Bob wants to train his math skills, so for each answer he wrote down the number of minutes ($60 \cdot x_i$), thanked the grandmasters and went home. Bob could write numbers with leading zeroes — for example, if some grandmaster answered that he had spent $2$ hours, Bob could write $000120$ instead of $120$.

Alice wanted to tease Bob and so she took the numbers Bob wrote down, and for each of them she did one of the following independently:   rearranged its digits, or  wrote a random number. 

This way, Alice generated $n$ numbers, denoted $y_1$, ..., $y_n$.

For each of the numbers, help Bob determine whether $y_i$ can be a permutation of a number divisible by $60$ (possibly with leading zeroes).


-----Input-----

The first line contains a single integer $n$ ($1 \leq n \leq 418$) — the number of grandmasters Bob asked.

Then $n$ lines follow, the $i$-th of which contains a single integer $y_i$ — the number that Alice wrote down.

Each of these numbers has between $2$ and $100$ digits '0' through '9'. They can contain leading zeroes.


-----Output-----

Output $n$ lines.

For each $i$, output the following. If it is possible to rearrange the digits of $y_i$ such that the resulting number is divisible by $60$, output "red" (quotes for clarity). Otherwise, output "cyan".


-----Example-----
Input
6
603
006
205
228
1053
0000000000000000000000000000000000000000000000

Output
red
red
cyan
cyan
cyan
red



-----Note-----

In the first example, there is one rearrangement that yields a number divisible by $60$, and that is $360$.

In the second example, there are two solutions. One is $060$ and the second is $600$.

In the third example, there are $6$ possible rearrangments: $025$, $052$, $205$, $250$, $502$, $520$. None of these numbers is divisible by $60$.

In the fourth example, there are $3$ rearrangements: $228$, $282$, $822$.

In the fifth example, none of the $24$ rearrangements result in a number divisible by $60$.

In the sixth example, note that $000\dots0$ is a valid solution.

Source: codeforces | Difficulty: EASY
Tags: Number theory

Mathematics


Solutions:
for _ in range(int(input())):
	a = input()
	if a.count('0') == 0:
		print('cyan')
		continue
	else:
		flag = 0
		if sum(list(map(int, a))) % 3 == 0:
			for i in a:
				if int(i) % 2 == 0:
					flag += 1
		if flag >= 2:
			print('red')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	num = str(input())
	zerocount = 0
	evencount = 0
	summ = 0
	for j in num:
		summ = summ + int(j)
		if int(j) % 2 == 0:
			evencount += 1
		if int(j) == 0:
			zerocount += 1
	if evencount >= 2 and zerocount >= 1 and (summ % 3 == 0):
		print('red')
	else:
		print('cyan')


cases = int(input())
for _ in range(cases):
	char_input = input()
	if int(char_input) == 0:
		print('red')
	else:
		has_zero = False
		has_even = False
		current_sum = 0
		for each_number in char_input:
			int_number = int(each_number)
			if int_number == 0:
				if has_zero == False:
					has_zero = True
				else:
					has_even = True
			else:
				if int_number % 2 == 0:
					has_even = True
				current_sum += int_number
		if current_sum % 3 == 0 and has_even and has_zero:
			print('red')
		else:
			print('cyan')


n = int(input())

def count(s):
	zero = 0
	even = 0
	sum = 0
	for c in s:
		c = int(c)
		if c & 1 == 0:
			even += 1
			if c == 0:
				zero += 1
		sum += c
	if sum % 3 == 0 and even > 1 and (zero > 0):
		print('red')
	else:
		print('cyan')
for cnt in range(n):
	s = input()
	count(s)


n = int(input())
for i in range(n):
	x = input()
	mas = []
	for j in range(10):
		mas.append(0)
	for j in range(len(x)):
		mas[int(x[j])] += 1
	if mas[0] > 0 and (mas[0] > 1 or mas[2] > 0 or mas[4] > 0 or (mas[6] > 0) or (mas[8] > 0)):
		suma = 0
		for j in range(10):
			suma += mas[j] * j
		if suma % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


exec(int(input()) * "y=input();print('cryeadn'[int(y)%3<1and(not{*y}&{*'2468'})<y.count('0')::2]);")


n = int(input())

def sum(x):
	if len(x) > 1:
		s = 0
		for c in x:
			s += int(c)
		return s
	return int(x)
for _ in range(n):
	x = input()
	if all([c == '0' for c in x]):
		print('red')
	elif len(x) == 1:
		print('cyan')
	else:
		r = sum(x)
		if r % 3 == 0:
			if '0' in x:
				x = x.replace('0', 'x', 1)
				if any([c in '02468' for c in x]):
					print('red')
				else:
					print('cyan')
			else:
				print('cyan')
		else:
			print('cyan')


import os
import sys
from io import BytesIO, IOBase
from collections import defaultdict

def solution(n):
	if '0' not in n:
		write('cyan')
		return
	(eve, zero) = (False, False)
	sums = sum((int(x) for x in n))
	for c in n:
		if c == '0':
			if zero:
				eve = True
			else:
				zero = True
		elif int(c) & 1 == 0:
			eve = True
	if zero and eve and (sums % 3 == 0):
		write('red')
	else:
		write('cyan')

def main():
	for _ in range(r_int()):
		n = input()
		solution(n)
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))

def input():
	return sys.stdin.readline().rstrip('\r\n')

def write(*args, end='\n'):
	for x in args:
		sys.stdout.write(str(x) + ' ')
	sys.stdout.write(end)

def r_array():
	return [int(x) for x in input().split()]

def r_int():
	return int(input())

def w_array(arr):
	for x in arr:
		write(x, end=' ')
	write()
main()


t = int(input())
for _ in range(t):
	n = input()
	zeros = n.count('0')
	if zeros == 0:
		print('cyan')
	else:
		even = 0
		s = 0
		for i in range(0, len(n)):
			if n[i] != '0':
				num = int(n[i])
				s += num
				if num % 2 == 0:
					even += 1
		if s % 3 == 0 and zeros > 0:
			if even == 0 and zeros >= 2:
				print('red')
			elif even > 0 and zeros >= 1:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	cero = 0
	par = 0
	A = input()
	for j in range(len(A)):
		if int(A[j]) % 2 == 0 and int(A[j]) != 0 or (int(A[j]) == 0 and cero):
			par = 1
		if A[j] == '0':
			cero = 1
	A = [int(x) for x in A]
	if cero and par and (sum(A) % 3 == 0):
		print('red')
	else:
		print('cyan')


t = int(input())
while t:
	t -= 1
	s = input()
	sz = 0
	for x in s:
		sz += int(x)
	sz = sz % 3
	even = ['2', '0', '4', '6', '8']
	cnt = 0
	for x in s:
		if x in even:
			cnt += 1
	if cnt >= 2 and sz == 0 and (s.count('0') >= 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	sumdigits = 0
	evencount = 0
	count = 0
	for j in a:
		sumdigits += int(j)
		if int(j) % 2 == 0:
			evencount += 1
		if j == '0':
			count += 1
	if count > 0 and evencount > 1 and (sumdigits % 3 == 0):
		print('red')
	else:
		print('cyan')


import os
import sys
from io import BytesIO, IOBase
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
for j in range(int(input())):
	vals = [int(k) for k in input()]
	found = False
	found2 = False
	for s in range(len(vals)):
		if vals[s] == 0:
			found = True
			break
	summy = sum(vals)
	for s in range(len(vals)):
		for b in range(len(vals)):
			if s != b and (10 * vals[s] + vals[b]) % 4 == 0:
				found2 = True
				break
		if found2 == True:
			break
	if found == True and found2 == True and (summy % 3 == 0):
		print('red')
	else:
		print('cyan')


from collections import deque
import sys
q = int(input())
for _ in range(q):
	x = input()
	c0 = x.count('0')
	x = x.replace('0', '')
	aa = [int(a) for a in x]
	cond1 = 0
	for z in aa:
		if z % 2 == 0:
			cond1 += 1
	if c0 >= 1 and c0 + cond1 >= 2 or len(aa) == 0:
		if sum(aa) % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	n = input()
	count = 0
	eve = 0
	for i in n:
		count = count + int(i)
		if int(i) % 2 == 0:
			eve += 1
	if count % 3 == 0:
		if '0' in n:
			if eve >= 2:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	a = input()
	b = [0] * 10
	c = [0] * 2
	for x in a:
		d = int(x)
		b[d] += 1
		c[d % 2] += 1
	if int(a) % 3 == 0 and b[0] > 0 and (c[0] > 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = input()
	if not s.strip('0'):
		print('red')
		continue
	if len(s) == 2:
		if s == '06' or s == '60':
			print('red')
		else:
			print('cyan')
		continue
	if '0' in s:
		s = s.replace('0', '', 1)
		if sum((int(i) for i in s)) % 3 == 0 and any((int(i) % 2 == 0 for i in s)):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for i in range(int(input())):
	(z, e, s) = (0, 0, 0)
	for c in map(int, input()):
		s += c
		z += c == 0
		if c % 2 == 0:
			e += 1
	print('red' if z > 0 and e > 1 and (s % 3 == 0) else 'cyan')


a = int(input())
for i in range(a):
	c = input()
	g = [0 for i in range(10)]
	su = 0
	for j in c:
		g[int(j)] += 1
		su += int(j)
	if su % 3 == 0 and g[0] > 0:
		if g[0] > 1 or g[2] > 0 or g[4] > 0 or (g[6] > 0) or (g[8] > 0) or (g[0] > 1 and g[2] == 0 and (g[4] == 0) and (g[6] == 0) and (g[8] == 0)):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for x in range(int(input())):
	l = list(map(int, input()))
	z = 0
	p = 0
	for i in range(len(l)):
		if l[i] % 2 == 0:
			z += 1
		p += l[i]
	if l.count(0) > 0 and p % 3 == 0 and (z >= 2):
		print('red')
	else:
		print('cyan')


import time
import bisect

def is_good(f):
	g = f[0]
	return all((i == g for i in f))
LOCAL = False
start_time = None
if LOCAL:
	start_time = time.time()
n = int(input())
while n > 0:
	n -= 1
	s = list(map(lambda x: int(x), input()))
	if sum(s) % 3 != 0:
		print('cyan')
		continue
	can = False
	for (i, k) in enumerate(s):
		for (j, z) in enumerate(s):
			if (z == 5 or z == 0) and j != i and ((k * 10 + z) % 4 == 0):
				can = True
				break
		if can:
			break
	if can:
		print('red')
	else:
		print('cyan')
if LOCAL:
	print('--- %s seconds ---' % (time.time() - start_time))


Ans = []
for i in range(int(input())):
	s = input()
	A = []
	for S in s:
		A.append(int(S))
	if sum(A) % 3 == 0:
		if 0 in A:
			A.pop(A.index(0))
			if not A:
				Ans.append(True)
			else:
				k = False
				for a in A:
					if a % 2 == 0:
						k = True
				Ans.append(k)
		else:
			Ans.append(False)
	else:
		Ans.append(False)
for ans in Ans:
	if ans:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	z = n.count('0')
	s = 0
	f = 0
	for c in n:
		if ord(c) % 2 == 0 and c != '0':
			f = 1
		s += ord(c) - ord('0')
	if z and s % 3 == 0 and (f or z > 1):
		print('red')
	else:
		print('cyan')


from itertools import permutations

def main():
	N = int(input())
	for _ in range(N):
		X = list(map(int, input()))
		(m, zeros, d) = (0, 0, False)
		for x in X:
			if x != 0:
				m += x
				if x % 2 == 0:
					d = True
			else:
				zeros += 1
				if zeros > 1:
					d = True
		if zeros == len(X) or (d and m % 3 == 0 and (zeros > 0)):
			print('red')
		else:
			print('cyan')
main()


for t in range(int(input())):
	s = input()
	l = len(s)
	zer = 0
	odd = 0
	eve = 0
	eve2 = 0
	tot = 0
	for i in range(l):
		if s[i] == '0':
			zer += 1
		if (ord(s[i]) - ord('0')) % 2 == 1:
			odd += 1
		if (ord(s[i]) - ord('0')) % 2 == 0 and (ord(s[i]) - ord('0')) % 4 == 2:
			eve += 1
		if (ord(s[i]) - ord('0')) % 4 == 0:
			eve2 += 1
		tot += ord(s[i]) - ord('0')
	if tot % 3 == 0 and zer >= 1:
		if odd >= 1 and eve >= 1:
			print('red')
		elif eve2 >= 2 or (eve >= 1 and eve2 >= 1):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


from itertools import permutations
n = int(input())
for _ in range(n):
	x = 0
	y = [0] * 10
	for i in input():
		x += int(i)
		y[int(i)] += 1
	if x % 3 == 0:
		if y[0] >= 1 and sum(y[::2]) >= 2:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = [int(num) for num in list(input())]
	even = 0
	for i in a:
		if i % 2 == 0:
			even += 1
	if even >= 2 and sum(a) % 3 == 0 and (a.count(0) >= 1):
		print('red')
	else:
		print('cyan')


import sys
import math
n = int(input())
for i in range(n):
	y = input()
	num0 = y.count('0')
	summ = 0
	e = 0
	if num0 > 0:
		for j in range(len(y)):
			if int(y[j]) % 2 == 0:
				e += 1
			summ += int(y[j])
		if summ % 3 == 0 and e >= 2:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
while n > 0:
	n -= 1
	s = input()
	s = [int(i) for i in s]
	if s.count(0) > 0 and sum(s) % 3 == 0 and (sum((1 - i % 2 for i in s)) > 1):
		print('red')
	else:
		print('cyan')


n = int(input())

def check(num):
	t1 = False
	t2 = False
	t3 = False
	s = 0
	for i in num:
		f = int(i)
		s += f
		if f == 0:
			if t1:
				t2 = True
			else:
				t1 = True
		elif f % 2 == 0:
			t2 = True
	if s % 3 == 0:
		t3 = True
	return t1 and t2 and t3
for i in range(n):
	g = input()
	if check(g):
		print('red')
	else:
		print('cyan')


N = int(input())
for i in range(N):
	s = input()
	if s.count('0') and sum(map(int, s)) % 3 == 0 and (sum((int(c) % 2 == 0 for c in s)) > 1):
		print('red')
	else:
		print('cyan')


import collections
for _ in range(int(input())):
	SUM = 0
	c = collections.Counter()
	for x in input():
		c[int(x)] += 1
		SUM += int(x)
	if 0 not in c or SUM % 3 != 0:
		print('cyan')
		continue
	c[0] -= 1
	if c[0] > 0 or 2 in c or 4 in c or (6 in c) or (8 in c):
		print('red')
	else:
		print('cyan')


import sys
n = int(sys.stdin.readline())
for i in range(n):
	y = sys.stdin.readline().strip()
	s = 0
	ten = 0
	even = 0
	for g in range(len(y)):
		num = int(y[g])
		if num == 0:
			ten += 1
		elif num == 2 or num == 4 or num == 6 or (num == 8):
			even = 1
		s += num
	if ten == 0:
		print('cyan')
	elif ten == 1:
		if s % 3 == 0 and even == 1:
			print('red')
		else:
			print('cyan')
	elif s % 3 == 0:
		print('red')
	else:
		print('cyan')


import collections
t = int(input())
for q in range(0, t):
	n = input()
	a = list(n)
	flag = -1
	for i in range(0, len(a)):
		a[i] = int(a[i])
		if a[i] == 0 and flag == -1:
			flag = i
	if flag != -1:
		a = a[:flag] + a[flag + 1:]
		s = sum(a)
		if s % 3 != 0:
			print('cyan')
		else:
			flag = 0
			for i in range(0, len(a)):
				if a[i] % 2 == 0:
					flag = 1
					break
			if flag == 1:
				print('red')
			else:
				print('cyan')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	f1 = 0
	f2 = False
	s = 0
	for ch in n:
		if ch == '0':
			f1 += 1
		if int(ch) % 2 == 0 and ch != '0':
			f2 = True
		s += int(ch)
	if (f1 > 1 or (f1 == 1 and f2)) and s % 3 == 0:
		print('red')
	else:
		print('cyan')


from os import path
import sys
from functools import cmp_to_key as ctk
from collections import deque, defaultdict as dd
from bisect import bisect, bisect_left, bisect_right, insort, insort_left, insort_right
from itertools import permutations
from datetime import datetime
from math import ceil, sqrt, log, gcd

def ii():
	return int(input())

def si():
	return input()

def mi():
	return map(int, input().split())

def li():
	return list(mi())
abc = 'abcdefghijklmnopqrstuvwxyz'
mod = 1000000007
inf = float('inf')
vow = ['a', 'e', 'i', 'o', 'u']
(dx, dy) = ([-1, 1, 0, 0], [0, 0, 1, -1])

def bo(i):
	return ord(i) - ord('a')
file = 0

def solve():
	for _ in range(ii()):
		s = si()
		if '0' not in s:
			print('cyan')
			continue
		s1 = 0
		cnteven = 0
		for i in s:
			x = int(i)
			s1 += x
			if x % 2 == 0:
				cnteven += 1
		if s1 % 3 == 0 and cnteven > 1:
			print('red')
		else:
			print('cyan')
if file:
	if path.exists('input1.txt'):
		sys.stdin = open('input1.txt', 'r')
		sys.stdout = open('output1.txt', 'w')
	else:
		input = sys.stdin.readline
solve()


n = int(input())
for i in range(n):
	a = input()
	li = list(a)
	for j in range(len(li)):
		li[j] = int(li[j])
	s = sum(li)
	chai = s % 3
	dic = {0: [2, 4, 6, 8, 0], 2: [1, 3, 5, 7, 9], 6: [1, 3, 5, 7, 9], 4: [2, 4, 6, 8]}
	vh = 0
	if (0 in li or 5 in li) and chai == 0:
		for jk in dic:
			if jk in li:
				li.remove(jk)
				for sd in dic[jk]:
					if sd in li:
						print('red')
						vh = 67
						break
			if vh == 67:
				break
			else:
				print('cyan')
				break
	else:
		print('cyan')


n = int(input())
arr = []
res = []
for _ in range(n):
	x = input()
	arr.append(list(x))
for num in arr:
	z = 0
	total = 0
	e = 0
	for ele in num:
		total += ord(ele) - ord('0')
		if ele == '0':
			z += 1
		if (ord(ele) - ord('0')) % 2 == 0:
			e += 1
	if total % 3 == 0 and z > 0 and (e > 1):
		res.append('red')
	else:
		res.append('cyan')
for ele in res:
	print(ele)


n = int(input())
for i in range(0, n):
	s = input()
	final = 0
	flag = 0
	flag1 = 0
	flag3 = 0
	for x in range(0, len(s)):
		final = final + int(s[x])
		if flag == 1:
			if int(s[x]) % 2 == 0:
				flag1 = 1
		if int(s[x]) % 2 == 0 and s[x] != '0':
			flag1 = 1
		if s[x] != '0':
			flag3 = 1
		if s[x] == '0':
			flag = 1
	if flag3 == 0:
		print('red')
	elif flag == 1 and final % 3 == 0 and (flag1 == 1):
		print('red')
	else:
		print('cyan')


res = []
for _ in range(int(input())):
	l = [*map(int, input())]
	val = sum(l) % 3 == 0
	val &= 0 in l
	val &= any((e in l for e in [2, 4, 6, 8])) or l.count(0) > 1
	res.append(['cyan', 'red'][val])
print(*res, sep='\n')


a = int(input())
c = list()
r = 0
while r < a:
	b = [int(b) for b in input()]
	if b.count(0) == len(b) or (0 in b and sum(b) % 3 == 0 and (2 in b or 4 in b or 6 in b or (8 in b) or (b.count(0) > 1))):
		c.append('red')
	else:
		c.append('cyan')
	r = r + 1
r = 0
while r < a:
	print(c[r])
	r = r + 1


for _ in range(int(input())):
	t = input()
	s = 0
	flag = 0
	c = 0
	even = 0
	for i in t:
		s += int(i)
		if int(i) == 0:
			c += 1
		if int(i) % 2 == 0 and int(i) != 0:
			even += 1
	if s % 3 == 0:
		flag = 1
	if flag == 1 and c >= 1 and (even + c >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for j in range(n):
	a = [int(d) for d in list(input())]
	even = 0
	for i in a:
		if i % 2 == 0:
			even += 1
	if sum(a) == 0:
		print('red')
	elif sum(a) % 3 == 0 and even >= 2 and (0 in a):
		print('red')
	else:
		print('cyan')


def r(ch, a):
	c = 0
	for i in range(len(ch)):
		if int(ch[i]) == a:
			c += 1
	return c

def sol(x):
	t = 0
	for i in range(len(x)):
		t += int(x[i])
	if t % 3 == 0 and r(x, 0) >= 1 and (r(x, 0) >= 2 or r(x, 2) >= 1 or r(x, 4) >= 1 or (r(x, 6) >= 1) or (r(x, 8) >= 1)):
		return 'red'
	else:
		return 'cyan'
n = int(input())
while n > 0:
	n -= 1
	x = str(input())
	print(sol(x))


nos = int(input())
for i in range(nos):
	s = list(input())
	ss = list(map(int, s))
	if 0 in ss and sum(ss) % 3 == 0:
		if ss.count(0) < 2:
			temp = 0
			temp += ss.count(2)
			temp += ss.count(4)
			temp += ss.count(6)
			temp += ss.count(8)
			if temp > 0:
				print('red')
			else:
				print('cyan')
		else:
			print('red')
	else:
		print('cyan')


t = int(input())
while t > 0:
	t = t - 1
	s = input()
	a = []
	for i in s:
		a.append(int(i))
	temp = -1
	div3 = sum(a)
	if div3 % 3 == 0:
		zero = a.count(0)
		if zero == 0:
			temp = -1
		elif zero >= 2:
			temp = 10
		elif zero == 1:
			for i in a:
				if i == 2 or i == 4 or i == 6 or (i == 8):
					temp = 10
					break
	if temp == -1:
		print('cyan')
	else:
		print('red')


from sys import stdin
import sys
sys.setrecursionlimit(2 * 10 ** 5)
from itertools import permutations

def get_count(arr):
	s = 0
	count0 = 0
	for i in arr:
		s += i
		if i == 0:
			count0 += 1
	return (s, count0)

def get_num(arr):
	return arr[0] * 10 + arr[1]
n = int(stdin.readline().strip())
arr = []
for i in range(n):
	arr.append(list(map(int, list(stdin.readline().strip()))))
for i in range(n):
	(s, count0) = get_count(arr[i])
	if s % 3 == 0 and count0:
		permut = permutations(arr[i], 2)
		for k in permut:
			num = get_num(k)
			if num % 4 == 0:
				print('red')
				break
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
a = []
for i in range(n):
	a.append(input())
for s in a:
	xs = [ord(c) - ord('0') for c in s]
	if sum(xs) % 3 == 0 and [x for x in xs if x == 0] and (len([x for x in xs if x % 2 == 0]) > 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	f1 = 0
	c = 0
	f2 = 0
	for i in n:
		if int(i) == 0:
			f1 += 1
		elif int(i) % 2 == 0:
			f2 += 1
		c += int(i)
	if f1 + f2 > 1 and c % 3 == 0 and (f1 > 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	x = input()
	z = 0
	e = 0
	ds = 0
	for i in x:
		if int(i) == 0:
			z = 1
		if int(i) % 2 == 0:
			e += 1
		ds += int(i)
	if z == 1 and e > 1 and (ds % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	if s == '0':
		print('red')
		continue
	if s.count('0') == 0:
		print('cyan')
		continue
	k = 0
	for x in s:
		k += 1 - int(x) % 2
	if k < 2:
		print('cyan')
		continue
	k = 0
	for x in s:
		k += int(x)
	if k % 3 == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for d in range(n):
	a = [int(i) for i in list(input())]
	b = [i for i in a if i % 2 == 0]
	if sum(a) % 3 == 0 and 0 in a and (len(b) >= 2):
		print('red')
	else:
		print('cyan')


def divisible6(arr):
	total = sum(arr)
	if total % 3 != 0:
		return 'cyan'
	else:
		evens = 0
		for i in arr:
			if i % 2 == 0:
				evens += 1
				if evens == 2:
					return 'red'
		return 'cyan'

def solution(t):
	for i in range(t):
		s = input()
		n = len(s)
		zeroes = s.count('0')
		if zeroes < 1:
			print('cyan')
		else:
			arr = list(map(int, s))
			print(divisible6(arr))

def main():
	t = int(input())
	solution(t)
main()


n = int(input())
a = [input() for i in range(n)]
for i in range(n):
	tmp = []
	flag = True
	for j in a[i]:
		if j == '0' and flag:
			flag = False
		else:
			tmp.append(j)
	if flag:
		print('cyan')
	else:
		num = 0
		flag2 = False
		for j in tmp:
			if int(j) % 2 == 0:
				flag2 = True
			num += int(j)
		if flag2 and num % 3 == 0:
			print('red')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	a = list(map(int, list(input())))
	flag = False
	for i in range(len(a) - 1):
		for j in range(i + 1, len(a)):
			if (a[i] * 10 + a[j]) % 4 == 0 or (a[i] + a[j] * 10) % 4 == 0:
				flag = True
				break
		if flag:
			break
	if sum(a) % 3 == 0 and 0 in a and flag:
		print('red')
	else:
		print('cyan')


from itertools import *

def func(num):
	sum = 0
	zero_flag = 0
	odd_flag = 0
	for i in num:
		if i == '0':
			zero_flag += 1
		if int(i) % 2 == 0 or zero_flag > 1:
			if i == '0' and zero_flag > 1:
				odd_flag = 1
			elif i != '0':
				odd_flag = 1
		sum += int(i)
	print('red' if sum % 3 == 0 and zero_flag and odd_flag else 'cyan')

def main():
	k = int(input())
	for i in range(k):
		num = input()
		func(num)
main()


import sys, os.path
if os.path.exists('input.txt'):
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')
for _ in range(int(input())):
	a = input()
	flag = False
	s = 0
	two = False
	for i in range(len(a)):
		s += int(a[i])
		if a[i] == '0':
			if not flag:
				flag = True
				continue
			else:
				two = True
		elif int(a[i]) % 2 == 0:
			two = True
	if not flag:
		print('cyan')
	elif two and s % 3 == 0:
		print('red')
	else:
		print('cyan')


exec('a=[*map(int,input())];print("cryeadn"[0in a and sum(a)%3<1and len([k for k in a if k%2<1])>1::2]);' * int(input()))


n = int(input())
for i in range(n):
	x = list(input())
	f = 0
	k = 0
	sm = 0
	for j in x:
		sm += int(j)
		if int(j) in {2, 4, 6, 8}:
			f = 1
		if j == '0':
			k += 1
	if (f and k >= 1 or k > 1) and sm % 3 == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = list(map(int, input()))
	if 0 not in n:
		print('cyan')
		continue
	n.remove(0)
	there = False
	for e in n:
		if e % 2 == 0:
			there = True
			break
	if not there or sum(n) % 3 != 0:
		print('cyan')
		continue
	print('red')


n = int(input())
for i in range(n):
	s = input()
	a = 0
	c = 0
	for j in range(len(s)):
		l = int(s[j])
		a += l
		if l != 0 and l % 2 == 0:
			c = 1
	k = s.count('0')
	if k == len(s) or ((k > 1 or (k == 1 and c == 1)) and a % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	l = list(map(int, input()))
	if sum(l) % 3 != 0:
		print('cyan')
		continue
	elif 0 in l:
		l.remove(0)
		f = 0
		for i in l:
			if i % 2 == 0:
				f = 1
				break
		if f:
			print('red')
			continue
		else:
			print('cyan')
			continue
	else:
		print('cyan')


T = int(input())
for i in range(T):
	j = str(input())
	z = 0
	e = 0
	s = 0
	for k in j:
		s += int(k)
		if int(k) % 2 == 0 and (int(k) != 0 or z == 1):
			e = 1
		if int(k) == 0:
			z = 1
	if z == 1 and e == 1 and (s % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	if '0' in a:
		s = 0
		c = 0
		a = list(a)
		a.remove('0')
		for j in a:
			s += int(j)
		for j in a:
			if int(j) % 2 == 0:
				c += 1
		if c > 0 and s % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for i in range(int(input())):
	(even, five, sum1, count) = (0, 0, 0, 0)
	for j in input():
		k = int(j)
		if k % 2 == 0:
			count += 1
			even = 1
		if k == 0:
			five = 1
		sum1 += k
	if even == 1 and five == 1 and (sum1 % 3 == 0) and (count >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	y = input()
	count = 0
	e = 0
	ans = []
	for i in range(len(y)):
		if y[i] == '0':
			count += 1
		elif int(y[i]) > 0:
			ans.append(int(y[i]))
			if int(y[i]) % 2 == 0:
				e += 1
	if count > 0:
		e += count
	if count == 0 or e < 2:
		print('cyan')
	elif sum(ans) % 3 == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	q = [int(i) for i in list(input())]
	n = len(q)
	a = True
	b = True
	c = True
	i = 0
	while (a or b) and i < n:
		if a and q[i] == 0:
			a = False
		elif q[i] in (0, 2, 4, 6, 8):
			b = False
		i += 1
	if sum(q) % 3 == 0 and (not a) and (not b):
		print('red')
	else:
		print('cyan')


T = int(input())
for t in range(T):
	a = [int(x) for x in list(input())]
	if sum(a) % 3 == 0 and a.count(0) > 0 and (a.count(0) + a.count(2) + a.count(4) + a.count(6) + a.count(8) > 1):
		print('red')
	else:
		print('cyan')


import sys

def fun(target):
	if 0 in target:
		target.remove(0)
		if sum(target) % 3 == 0:
			for i in target:
				if i % 2 == 0:
					return True
	return False
n = int(sys.stdin.readline())
for _ in range(n):
	target = [int(i) for i in list(sys.stdin.readline().strip())]
	if sum(target) == 0:
		print('red')
	elif fun(target):
		print('red')
	else:
		print('cyan')


t = int(input())
while t > 0:
	inp = str(input())
	temp = []
	for i in range(len(inp)):
		tempo = int(inp[i])
		temp.append(tempo)
	no_of_zeroes = 0
	non_zero_evendigits = 0
	sum_of_digits = 0
	for i in range(len(inp)):
		if temp[i] == 0:
			no_of_zeroes += 1
		elif temp[i] % 2 == 0:
			non_zero_evendigits += 1
		sum_of_digits += temp[i]
	if sum_of_digits % 3 == 0 and no_of_zeroes >= 1 and (non_zero_evendigits >= 1):
		print('red')
	elif sum_of_digits % 3 == 0 and no_of_zeroes >= 2:
		print('red')
	else:
		print('cyan')
	t -= 1


from itertools import permutations
n = int(input())
for i in range(n):
	s = str(input())
	l = list(s)
	a = 0
	b = 0
	c = 0
	d = 0
	sum = 0
	if int(s) == 0:
		print('red')
	else:
		sum = 0
		for i in range(len(l)):
			sum += int(l[i])
		if sum % 3 == 0:
			c = 1
		for i in range(len(s)):
			if int(l[i]) != 0 and int(l[i]) % 2 == 0:
				a = 1
			if int(l[i]) == 0:
				d += 1
				b = 1
		if a == 1 and b == 1 and (c == 1):
			print('red')
		elif a == 0 and b == 1 and (c == 1):
			if d >= 2:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')


import itertools
import random

def main(number):
	num = tuple(map(int, tuple(number)))
	if all((sum(num) % 3 == 0, 0 in num, any((num.count(0) >= 2, 2 in num, 4 in num, 6 in num, 8 in num)))):
		print('red')
		return
	print('cyan')
n = int(input())
for i in range(n):
	number = input()
	main(number)


def getLine():
	return list(map(int, input().split()))
t = int(input())
for _ in range(t):
	n = input()
	s = 0
	b = False
	e = False
	for i in n:
		j = int(i)
		s += j
		if j == 0 and (not b):
			b = True
		elif j == 0 and b:
			e = True
		elif j % 2 == 0:
			e = True
	if b and s % 3 == 0 and e:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	no = input()
	flag = False
	new = False
	j = 0
	for i in str(no):
		if int(i) % 2 == 0:
			if j == 0 and int(i) == 0:
				pass
				j += 1
			else:
				flag = True
	if str(no).count('0') >= 1:
		new = True
	if flag and new and (sum(map(int, str(no))) % 3 == 0):
		print('red')
	else:
		print('cyan')


def sum_string(s):
	res = 0
	for i in s:
		res += int(i)
	return res

def divisible_2(s):
	for i in s:
		if int(i) % 2 == 0:
			return True
	return False

def main():
	n = int(input())
	number = []
	res = []
	for i in range(n):
		number.append(input())
	for i in number:
		if i.find('0') != -1:
			i = i.replace('0', '', 1)
			if sum_string(i) % 3 == 0 and divisible_2(i) == True:
				res.append('red')
			else:
				res.append('cyan')
		else:
			res.append('cyan')
	for i in res:
		print(i)
main()


t = int(input())
while t:
	t -= 1
	s = str(input())
	k = len(s)
	sum1 = 0
	sum = 0
	sum2 = 0
	for i in range(k):
		l = s[i]
		m = int(l)
		sum += m
		if m == 0:
			sum1 += 1
		if m % 2 == 0:
			sum2 += 1
	if sum % 3 == 0 and sum1 >= 1 and (sum2 >= 2):
		print('red')
	else:
		print('cyan')


def div3(s):
	total = 0
	for i in s:
		total += int(i)
	return total % 3 == 0

def div2(s):
	arr = [int(i) % 2 == 0 for i in s]
	return arr.count(True) >= 2

def div10(s):
	return '0' in s
n = int(input())
nums = [input() for _ in range(n)]
for s in nums:
	if div3(s) and div2(s) and div10(s):
		print('red')
	else:
		print('cyan')


N = int(input())
for case in range(N):
	s = input()
	zero_present = False
	divisble_by_4 = 0
	divisble_by_3 = 0
	for i in s:
		if i == '0':
			zero_present = True
		if i == '2' or i == '4' or i == '6' or (i == '8') or (i == '0'):
			divisble_by_4 += 1
		divisble_by_3 += int(i)
	if zero_present == True and divisble_by_4 > 1 and (divisble_by_3 % 3 == 0):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	s = 0
	c = 0
	n = input()
	for j in n:
		s += int(j)
		if int(j) % 2 == 0:
			c += 1
	if s % 3 == 0 and n.count('0') > 0 and (c > 1):
		print('red')
	else:
		print('cyan')


import sys
input = sys.stdin.readline
t = int(input())
while t > 0:
	s = input().strip()
	sum = 0
	zero = False
	cnt = 0
	for i in range(len(s)):
		if s[i] == '0':
			zero = True
		if int(s[i]) % 2 == 0:
			cnt += 1
		sum += int(s[i])
	if sum % 3 == 0 and zero is True and (cnt >= 2):
		print('red')
	else:
		print('cyan')
	t -= 1


import sys
import math
import itertools
import collections

def ii():
	return int(input())

def mi():
	return map(int, input().split())

def li():
	return list(map(int, input().split()))

def lcm(a, b):
	return abs(a * b) // math.gcd(a, b)

def wr(arr):
	return ' '.join(map(str, arr))

def revn(n):
	return str(n)[::-1]

def dd():
	return collections.defaultdict(int)

def ddl():
	return collections.defaultdict(list)

def sieve(n):
	if n < 2:
		return list()
	prime = [True for _ in range(n + 1)]
	p = 3
	while p * p <= n:
		if prime[p]:
			for i in range(p * 2, n + 1, p):
				prime[i] = False
		p += 2
	r = [2]
	for p in range(3, n + 1, 2):
		if prime[p]:
			r.append(p)
	return r

def divs(n, start=1):
	r = []
	for i in range(start, int(math.sqrt(n) + 1)):
		if n % i == 0:
			if n / i == i:
				r.append(i)
			else:
				r.extend([i, n // i])
	return r

def divn(n, primes):
	divs_number = 1
	for i in primes:
		if n == 1:
			return divs_number
		t = 1
		while n % i == 0:
			t += 1
			n //= i
		divs_number *= t

def prime(n):
	if n == 2:
		return True
	if n % 2 == 0 or n <= 1:
		return False
	sqr = int(math.sqrt(n)) + 1
	for d in range(3, sqr, 2):
		if n % d == 0:
			return False
	return True

def convn(number, base):
	newnumber = 0
	while number > 0:
		newnumber += number % base
		number //= base
	return newnumber

def cdiv(n, k):
	return n // k + (n % k != 0)
n = ii()
for i in range(n):
	t = input()
	ts = list(map(int, t))
	if t.count('0') == 1 and ('2' in t or '4' in t or '6' in t or ('8' in t)) and (sum(ts) % 3 == 0) or (t.count('0') > 1 and ('2' in t or '4' in t or '6' in t or ('8' in t) or ('0' in t)) and (sum(ts) % 3 == 0)):
		print('red')
	else:
		print('cyan')


def process(n):
	p = dict()
	tmp_sum = 0
	for i in n:
		if int(i) in p:
			p[int(i)] += 1
		else:
			p[int(i)] = 1
		tmp_sum += int(i) % 3
		tmp_sum %= 3
	if 0 not in p:
		return False
	p[0] -= 1
	if tmp_sum % 3 != 0:
		return False
	for j in [2, 4, 6, 8]:
		if j in p:
			return True
	if p[0] > 0:
		return True
	return False
n = int(input())
for i in range(n):
	if process(input()):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	a = input()
	c = list(a)
	if c.count('0') == 0:
		print('cyan')
	else:
		c.remove('0')
		sum = 0
		count = 0
		for j in range(len(c)):
			if int(c[j]) % 2 == 0:
				count += 1
			sum += int(c[j])
		if count == 0:
			print('cyan')
		elif sum % 3 == 0:
			print('red')
		else:
			print('cyan')


red = 'red'
cyan = 'cyan'
n = int(input())
for i in range(n):
	stry = input()
	l_stry = len(stry)
	zero = False
	sum_y = 0
	cnt = 0
	for i in range(l_stry):
		m = int(stry[i]) - 0
		if m % 2 == 0:
			cnt = cnt + 1
		if m == 0:
			zero = True
		sum_y = sum_y + m
	if sum_y % 3 == 0 and cnt > 1 and zero:
		print(red)
	else:
		print(cyan)


n = int(input())
for i in range(n):
	s = input()
	used = [0] * 10
	su = 0
	for i in range(len(s)):
		used[int(s[i])] += 1
		su += int(s[i])
	if used[0] == 0:
		print('cyan')
	elif su % 3 == 0 and (used[0] > 1 or used[2] > 0 or used[4] > 0 or (used[6] > 0) or (used[8] > 0)):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	y = input()
	l = list(y)
	if '0' not in y:
		print('cyan')
		continue
	else:
		l.remove('0')
	if '0' not in l and '2' not in l and ('4' not in l) and ('6' not in l) and ('8' not in l):
		print('cyan')
		continue
	else:
		l = [int(x) for x in l]
		if sum(l) % 3 == 0:
			print('red')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	inp = input()
	sumd = 0
	flag1 = False
	counte = 0
	for j in inp:
		if j == '0':
			flag1 = True
		sumd += int(j)
		if int(j) % 2 == 0:
			counte += 1
	if flag1 == True and sumd % 3 == 0 and (counte >= 2):
		print('red')
	else:
		print('cyan')


import math
import collections
import sys

def inpu():
	return input().split(' ')

def inti(a):
	for i in range(len(a)):
		a[i] = int(a[i])
	return a

def inp():
	a = inpu()
	a = inti(a)
	return a
for _ in range(int(input())):
	s = input()
	k = 0
	f = 0
	p = 0
	for i in s:
		i = int(i)
		k += i
		if i == 0:
			f = 1
		if i % 2 == 0:
			p += 1
	if f == 0:
		print('cyan')
	elif k % 3 != 0:
		print('cyan')
	elif p < 2:
		print('cyan')
	else:
		print('red')


def check(num):
	digit_sum = 0
	zero_count = 0
	for ch in num:
		if ch == '0':
			zero_count += 1
		digit_sum += int(ch)
	num1 = num.replace('0', '')
	if digit_sum % 3 == 0 and (zero_count > 1 or (zero_count > 0 and ('2' in num1 or '4' in num1 or '6' in num1 or ('8' in num1)))):
		print('red')
	else:
		print('cyan')

def main():
	n = int(input())
	nums = []
	for i in range(0, n):
		num = input()
		nums.append(num)
	for num in nums:
		check(num)
main()


for _ in range(int(input())):
	n = input()
	ar = []
	even = 0
	zero = 0
	for i in n:
		ar.append(int(i))
		if int(i) % 2 == 0:
			even += 1
		if i == '0':
			zero += 1
	if sum(ar) % 3 == 0 and even >= 2 and (zero >= 1):
		print('red')
	else:
		print('cyan')


for t in range(int(input())):
	A = list(input())
	x = False
	sum = 0
	if '0' in A:
		A.pop(A.index('0'))
		if '0' in A or '2' in A or '4' in A or ('6' in A) or ('8' in A):
			for i in range(len(A)):
				sum += int(A[i])
			if sum % 3 == 0:
				x = True
	if x:
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	r = input()
	s = sum(map(int, list(r)))
	if '0' in r and s % 3 == 0 and ('2' in r or '4' in r or '6' in r or ('8' in r) or (r.count('0') > 1)):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	a = sorted(list(map(int, list(input()))))
	e = 0
	z = 0
	for i in a:
		if i % 2 == 0 and i != 0:
			e = 1
			break
		elif i == 0:
			z += 1
	if z >= 2:
		e = 1
	if a[0] == 0 and sum(a) % 3 == 0 and (e == 1):
		print('red')
	else:
		print('cyan')


import math
import sys
for _ in range(int(input())):
	s = input()
	l = []
	w = set()
	for i in s:
		l.append(int(i))
		w.add(int(i))
	if l.count(0) > 1 and sum(l) % 3 == 0:
		print('red')
		continue
	if l.count(0) > 0 and sum(l) % 3 == 0:
		if 2 in w:
			print('red')
			continue
		if 4 in w:
			print('red')
			continue
		if 6 in w:
			print('red')
			continue
		if 8 in w:
			print('red')
			continue
		print('cyan')
		continue
	print('cyan')


import sys
I = sys.stdin.readline
ans = ''
for _ in range(int(I())):
	n = I().strip()
	if int(n) % 60 == 0:
		ans += 'red\n'
	else:
		flag0 = 0
		flag2 = 0
		cnt = 0
		s = 0
		for i in n:
			s += int(i)
			if i == '0':
				cnt += 1
				flag0 = 1
				if cnt > 1:
					flag2 = 1
			elif int(i) % 2 == 0:
				flag2 = 1
		if s % 3 == 0 and flag0 == 1 and (flag2 == 1):
			ans += 'red\n'
		else:
			ans += 'cyan\n'
print(ans)


t = int(input())
for _ in range(t):
	n = input()
	c = 0
	k = 0
	for i in n:
		if int(i) % 2 == 0:
			c += 1
		k += int(i)
	if c >= 2 and k % 3 == 0 and ('0' in n):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	a = list(map(int, input()))
	t = z = s = 0
	for i in a:
		s += i
		if i == 0:
			z += 1
		if not i % 2:
			t += 1
	print('red' if not s % 3 and z and t - 1 and (len(a) >= 2) or z == len(a) else 'cyan')


for _ in range(int(input())):
	yi = input()
	c0 = yi.count('0')
	ans = False
	if c0 > 0:
		a = [int(x) for x in yi]
		sm = sum(a)
		if sm % 3 == 0:
			for el in a:
				if el % 2 == 0:
					if el == 0 and c0 > 1:
						ans = True
						break
					elif el != 0:
						ans = True
						break
	if ans:
		print('red')
	else:
		print('cyan')


from sys import stdin

def iin():
	return int(stdin.readline())

def lin():
	return list(map(int, stdin.readline().split()))

def main():
	n = iin()
	for _ in range(n):
		num = input()
		dc = {i: 0 for i in range(10)}
		for i in num:
			dc[int(i)] += 1
		ans = 'cyan'
		if dc[0]:
			if dc[0] - 1 or dc[2] or dc[4] or dc[6] or dc[8]:
				sm = 0
				for i in dc:
					sm += i * dc[i]
				if sm % 3 == 0:
					ans = 'red'
		print(ans)
main()


T = int(input())
answer = ''
digits = list('0123456789')
for t in range(T):
	gotten = input()
	D = {}
	for d in digits:
		D[d] = gotten.count(d)
	twos = 0
	for c in ('2', '4', '6', '8'):
		twos += D[c]
	nines = D['9']
	if gotten.count('0') == len(gotten):
		answer += 'red\n'
		continue
	if D['0'] > 0:
		if twos > 0 or D['0'] > 1:
			ic = list(map(int, gotten))
			summ = 0
			for j in ic:
				summ += j
			if summ % 3 == 0:
				answer += 'red\n'
				continue
	answer += 'cyan\n'
print(answer)


from itertools import permutations
for _ in range(int(input())):
	n = [int(x) for x in input()]
	if 0 in n:
		n.remove(0)
		if sum(n) % 3 == 0:
			if 0 in n or 2 in n or 4 in n or (6 in n) or (8 in n):
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


def div60(y):
	even = 0
	s = 0
	for d in y:
		cur = int(d)
		if cur % 2 == 0:
			even += 1
		s += cur
	if even > 1 and s % 3 == 0 and ('0' in y):
		return 'red'
	return 'cyan'
n = int(input())
for _ in range(n):
	y = input()
	print(div60(y))


t = int(input())
for i in range(t):
	s = input()
	n = [int(x) for x in s]
	if sum(n) % 3 == 0 and 0 in n and (n.count(0) >= 2 or 2 in n or 4 in n or (6 in n) or (8 in n)):
		print('red')
	else:
		print('cyan')


import sys
input = sys.stdin.readline
n = int(input())
for i in range(n):
	s = input()
	s = s[:-1]
	even = 0
	countz = 0
	sumi = 0
	for j in s:
		sumi += int(j)
		z = int(j)
		if z == 0:
			countz += 1
		if z % 2 == 0:
			even += 1
	if sumi % 3 == 0 and even >= 2 and (countz >= 1):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	s = input()
	(su, cont, c0) = (0, 0, 0)
	for i in s:
		a = int(i)
		su += a
		if a % 2 == 0:
			cont += 1
		if a == 0:
			c0 += 1
	if su % 3 == 0 and cont >= 2 and (c0 >= 1):
		print('red')
	else:
		print('cyan')


def contain_evens(number):
	cnt = 0
	for index in list(number):
		if int(index) % 2 == 0:
			cnt += 1
			if cnt == 2:
				return True
	return False
n: int = int(input())
if n < 1 or n > 418:
	exit(5)
a = [input() for i in range(n)]
for number in a:
	if '0' not in number or not contain_evens(number) or int(number) % 3 != 0:
		print('cyan')
	else:
		print('red')


n = int(input())
a = []
for i in range(n):
	b = input()
	count = 0
	schet = 0
	d = ''
	g = 0
	if len(b) < 2:
		a.append('cyan')
		continue
	for j in b:
		if int(j) > 0:
			g += int(j)
			if int(j) % 2 == 0:
				d += j
			else:
				d += j
				schet += 1
		else:
			count += 1
	if len(d) == 0:
		a.append('red')
	elif count == 0:
		a.append('cyan')
	elif len(d) == schet:
		if g % 3 == 0 and count > 1:
			a.append('red')
		else:
			a.append('cyan')
	elif g % 3 == 0:
		a.append('red')
	else:
		a.append('cyan')
for i in a:
	print(i)


for i in range(int(input())):
	s = input()
	k = 0
	t = 0
	u = 0
	for j in range(len(s)):
		if s[j] == '0':
			k = 1
			break
	for y in range(len(s)):
		if y != j and int(s[y]) % 2 == 0:
			t = 1
			break
	for r in range(len(s)):
		u += int(s[r])
	if u % 3 == 0 and k == 1 and (t == 1):
		print('red')
	else:
		print('cyan')


def fun(a):
	l = len(a)
	for i in range(l):
		for j in range(l):
			if i == j:
				continue
			(x, y) = (int(a[i]), int(a[j]))
			if y == 0 or y == 5:
				if (x * 10 + y) % 4 == 0:
					return True
	return False
qwert = int(input())
for asdf in range(qwert):
	a = input()
	s = sum(list(map(int, a.split())))
	if s % 3 == 0 and fun(a):
		print('red')
	else:
		print('cyan')


T = int(input())
for i in range(T):
	k = input()
	num = []
	evn = 0
	zer = 0
	sumn = 0
	for i in range(len(k)):
		num.append(int(k[i]))
	for i in num:
		if i == 0:
			zer += 1
		if i % 2 == 0:
			evn += 1
		sumn += i
	if evn > 1 and zer > 0 and (sumn % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	x = input()
	s = 0
	for i in x:
		s += int(i)
	if s % 3 != 0:
		print('cyan')
	else:
		f = False
		index = ''
		for i in range(len(x)):
			if x[i] == '0':
				f = True
				index = i
		if not f:
			print('cyan')
		else:
			f = False
			for i in range(index):
				if int(x[i] + '0') % 4 == 0 or int('0' + x[i]) % 4 == 0:
					f = True
			for i in range(index + 1, len(x)):
				if int(x[i] + '0') % 4 == 0 or int('0' + x[i]) % 4 == 0:
					f = True
			if f:
				print('red')
			else:
				print('cyan')


t = int(input())
while t:
	n = input()
	c0 = 0
	ce = 0
	sum0 = 0
	for i in range(0, len(n), 1):
		if n[i] == '0':
			c0 += 1
		if int(n[i]) % 2 == 0:
			ce += 1
		sum0 += int(n[i])
	if c0 > 0 and ce > 1 and (sum0 % 3 == 0):
		print('red')
	else:
		print('cyan')
	t -= 1


for i in range(int(input())):
	s = str(input())
	if s.count('0') == len(s):
		print('red')
	else:
		i = 0
		total = 0
		even = 0
		while i < len(s):
			total = total + int(s[i])
			if int(s[i]) != 0 and int(s[i]) % 2 == 0:
				even = even + 1
			i = i + 1
		if s.count('0') > 1:
			even = even + 1
		if total % 3 == 0 and '0' in s and (even >= 1):
			print('red')
		else:
			print('cyan')


n = int(input())
answer = []
for i in range(n):
	s = input()
	chet = False
	three = False
	ten = False
	sum = 0
	for j in s:
		if int(j) == 0 and (not ten):
			ten = True
		elif int(j) % 2 == 0:
			chet = True
		sum += int(j)
	if ten and chet and (sum % 3 == 0):
		answer.append('red')
	else:
		answer.append('cyan')
for i in answer:
	print(i)


n = int(input())
for _ in range(n):
	a = list(map(int, list(input())))
	f1 = False
	f2 = False
	f3 = False
	f4 = True
	for i in range(len(a)):
		if a[i] != 0:
			f4 = False
	s = 0
	for i in range(len(a)):
		if a[i] == 0 and f1 == False:
			f1 = True
		elif a[i] % 2 == 0:
			f3 = True
		s += a[i]
	if s % 3 == 0:
		f2 = True
	if f1 and f2 and f3 or f4:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	x = input()
	y = 0
	for i in x:
		if int(i) % 2 == 0:
			y += 1

	def fun(x):
		c = 0
		for i in x:
			c += int(i)
		if c % 3 == 0:
			return 'YES'
		else:
			return 'NO'
	if min(x) == '0':
		if fun(x) == 'YES':
			if y > 1:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for j in range(n):
	s = input()
	sum = 0
	zero = 0
	even = 0
	for i in s:
		if i == '0':
			zero += 1
		if i == '2' or i == '4' or i == '6' or (i == '8'):
			even += 1
		sum += int(i)
	if sum % 3 == 0 and zero > 0 and (zero > 1 or even > 0):
		print('red')
	else:
		print('cyan')


a = int(input())
for c in range(a):
	n = input()
	n1 = int(n)
	li = []
	sw = 0
	sw1 = 0
	s = 0
	c = 0
	for i in n:
		li.append(i)
	for i in li:
		if i == '0' and sw == 0:
			sw = 1
		l = int(i)
		s = s + l
	for i in li:
		if i == '0':
			c = c + 1
	if sw == 1:
		for i in li:
			l = int(i)
			if l % 2 == 0 and l != 0:
				sw1 = 1
				break
			else:
				sw1 = 0
	if sw == 1 and s % 3 == 0 and (sw1 == 1 or c > 1):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(0, t):
	n = input()
	l = len(n)
	zero = 0
	sum = 0
	even = 0
	for k in range(0, l):
		sum = sum + int(n[k])
		if n[k] == '0':
			zero = zero + 1
		if int(n[k]) % 2 == 0 and n[k] != '0':
			even = even + 1
	if int(n) == 0:
		print('red')
	elif sum % 3 == 0 and (even > 0 or zero > 1) and (zero > 0):
		print('red')
	else:
		print('cyan')


n = int(input())
num = ['2', '4', '6', '8']
a = ['0'] * n
for i in range(n):
	a[i] = input()
for i in range(n):
	S = 0
	for j in range(len(a[i])):
		S += int(a[i][j])
	f = 0
	j = 0
	while f == 0 and j < len(a[i]):
		if a[i][j] in num:
			f = 1
		j += 1
	if S % 3 == 0 and a[i].count('0') > 0 and (f == 1 or a[i].count('0') > 1):
		print('red')
	else:
		print('cyan')


from collections import defaultdict, deque
from itertools import permutations
from sys import stdin, stdout
from bisect import bisect_left, bisect_right
from copy import deepcopy
int_input = lambda : int(stdin.readline())
string_input = lambda : stdin.readline()
multi_int_input = lambda : map(int, stdin.readline().split())
multi_input = lambda : stdin.readline().split()
list_input = lambda : list(map(int, stdin.readline().split()))
string_list_input = lambda : list(string_input())
MOD = pow(10, 9) + 7
test = int_input()
for i in range(test):
	n = string_input()
	sum = 0
	twos = 0
	zeroes = 0
	for ch in n:
		if ch != '\n':
			sum += int(ch)
			if int(ch) % 2 == 0:
				if ch == '0':
					zeroes += 1
				twos += 1
	if sum % 3 == 0 and twos > 1 and (zeroes >= 1):
		print('red')
	else:
		print('cyan')


from math import ceil
from math import factorial
from collections import Counter
from operator import itemgetter
ii = lambda : int(input())
iia = lambda : list(map(int, input().split()))
isa = lambda : list(input().split())
t = int(input())
for _ in range(t):
	n = input()
	x = list(map(int, n))
	flag = 0
	for i in x:
		if i != 0 and i % 2 == 0:
			flag = 1
			break
	if x.count(0) == len(x):
		flag = 1
	m = x.count(0)
	if sum(x) % 3 == 0 and 0 in x and (flag == 1):
		print('red')
	elif m > 1 and sum(x) % 3 == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
l = []
for i in range(n):
	q = str(input())
	l.append(q)
for i in l:
	f1 = 0
	f2 = 0
	f3 = 0
	c = i.count('0')
	if c > 0:
		f1 = 1
	for k in i:
		if int(k) % 2 == 0:
			f2 += 1
	sum1 = 0
	for k in i:
		sum1 += int(k)
	if sum1 % 3 == 0:
		f3 += 1
	if f1 == 1 and f2 > 1 and (f3 == 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	arr = list(map(int, list(input())))
	s = sum(arr)
	d2 = False
	d0 = False
	for i in arr:
		if d0 == False and i == 0:
			d0 = True
		elif i % 2 == 0:
			d2 = True
	if d0 and s % 3 == 0 and d2:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	(a, s, nOdd, null) = (input(), 0, False, False)
	if '0' in a:
		null = True
	if '2' in a or '4' in a or '6' in a or ('8' in a) or (a.count('0') > 1):
		nOdd = True
	for i in range(len(a)):
		s += int(a[i])
	if s % 3 == 0 and nOdd and null:
		print('red')
	else:
		print('cyan')


import sys
for _ in range(int(input())):
	s = input()
	k = 0
	f = 0
	p = 0
	for i in s:
		i = int(i)
		k += i
		if i == 0:
			f = 1
		if i % 2 == 0:
			p += 1
	if f == 0:
		print('cyan')
	elif k % 3 != 0:
		print('cyan')
	elif p < 2:
		print('cyan')
	else:
		print('red')


t = int(input())
while t != 0:
	t -= 1
	n = input()
	c = len(n)
	p = 0
	r = 0
	ind = 0
	for i in range(c):
		if int(n[i]) == 0:
			r = 1
			ind = i
			break
	for i in range(c):
		if int(n[i]) % 2 == 0 and i != ind:
			p = 1
	q = 0
	if int(n) % 3 == 0:
		q = 1
	if p == 1 and q == 1 and (r == 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	p = list(map(int, input()))
	sum1 = sum(p)
	yup = 0
	cnt0 = 0
	if 0 in p:
		p.remove(0)
		cnt0 = 1
	if sum1 % 3 == 0:
		for i in p:
			if i % 2 == 0:
				yup = 1
				break
	if yup == 1 and cnt0 == 1:
		print('red')
	else:
		print('cyan')
	yup = 0


for _ in range(int(input())):
	x = input()
	ss = 0
	(z, e) = (0, 0)
	for c in x:
		ch = ord(c) - ord('0')
		ss += ch
		if ch == 0:
			z += 1
		if ch % 2 == 0:
			e += 1
	ss %= 3
	if z > 0 and e > 1 and (ss == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = str(input())
	a2 = 0
	a0 = 0
	s = 0
	if len(a) <= 2:
		if a == '00' or a == '00' or a == '06' or (a == '60'):
			print('red')
		else:
			print('cyan')
	else:
		for j in range(len(a)):
			if a[j] == '0':
				a0 += 1
			if a[j] == '2' or a[j] == '4' or a[j] == '6' or (a[j] == '8'):
				a2 += 1
			s += int(a[j])
		if s % 3 == 0 and (a0 >= 2 or (a0 >= 1 and a2 >= 1)):
			print('red')
		else:
			print('cyan')


t = int(input())
for _ in range(t):
	flag = 0
	s = input()
	if '0' in s and int(s) % 3 == 0 and ('2' in s or '4' in s or '6' in s or ('8' in s) or (int(s) == 0) or (s.count('0') >= 2)):
		print('red')
	else:
		print('cyan')


def s_dig(n):
	s = sum([int(x) for x in n])
	return s

def ev_n(n):
	f = False
	c = 0
	for i in n:
		if int(i) % 2 == 0:
			c += 1
		if c == 2:
			f = True
			break
	return f

def solve(n):
	x = s_dig(n)
	if '0' in n:
		if x % 3 == 0:
			if ev_n(n):
				return 'red'
	return 'cyan'
for _ in range(int(input())):
	n = list(input())
	print(solve(n))


t = int(input())
for _ in range(t):
	s = input()
	sum1 = 0
	for i in s:
		sum1 += int(i)
	count = 0
	zero = 0
	for i in s:
		if i == '0':
			zero += 1
		elif i == '0' or i == '2' or i == '4' or (i == '6') or (i == '8'):
			count += 1
		if zero and count:
			break
	if zero > 1 and count == 0:
		zero -= 1
		count += 1
	if sum1 % 3 == 0 and zero and count:
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	n = input()
	l = list()
	sum = 0
	e = 0
	while len(n) > 0:
		k = int(n) % 10
		l.append(k)
		sum += k
		if k % 2 == 0:
			e += 1
		n = n[0:len(n) - 1:1]
	if e > 1 and sum % 3 == 0 and (0 in l):
		print('red')
	else:
		print('cyan')


import sys
reader = (s.rstrip() for s in sys.stdin)
input = reader.__next__
n = int(input())
for i in range(n):
	s = list(map(int, input()))
	su = sum(s)
	z = s.count(0)
	if 0 in s and sum(s) % 3 == 0 and (sum((j % 2 == 0 for j in s)) > 1):
		print('red')
	else:
		print('cyan')


def even(n):
	c = 0
	for i in n:
		if i == 0:
			c += 1
			if c == 2:
				return 1
		elif i % 2 == 0:
			return 1
	return 0
for _ in range(int(input())):
	n = input()
	n = [int(i) for i in n]
	l = len(n)
	c0 = n.count(0)
	su = sum(n)
	if su % 3 == 0 and c0 != 0 and (even(n) == 1):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	flag = 0
	s = list(map(int, input()))
	n = sum(s)
	if n != 0:
		for i in s:
			if i % 2 == 0:
				flag += 1
		if flag >= 2 and 0 in s:
			if n % 3 == 0:
				print('red')
				continue
		print('cyan')
	else:
		print('red')


def f():
	if d[0] > 1 or d[2] >= 1 or d[4] >= 1 or (d[6] >= 1) or (d[8] >= 1):
		return True
	return False
n = int(input())
for i in range(n):
	tmp = input()
	s = 0
	d = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0}
	for x in tmp:
		s += int(x)
		d[int(x)] += 1
	if s % 3 != 0 or d[0] == 0:
		print('cyan')
	elif f():
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	p = 0
	q = input()
	f = [int(i) for i in q]
	a = sum(f)
	if a % 3 == 0:
		for i in f:
			if i % 2 == 0:
				p += 1
				if p == 2:
					break
		if p < 2:
			print('cyan')
		elif 0 in f:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


t = int(input())
while t > 0:
	t -= 1
	n = input()
	a = int(n)
	if a == 0:
		print('red')
	else:
		s = 0
		k = 0
		if '0' in n:
			for i in n:
				s += int(i)
				if int(i) % 2 == 0 and int(i) != 0:
					k = 1
			if s % 3 == 0 and (k == 1 or n.count('0') >= 2):
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')


n = int(input())
for j in range(n):
	Test = False
	ch = input()
	nb = 0
	nbz = 0
	L = []
	for i in ch:
		L.append(int(i))
	if 0 not in L:
		print('cyan')
	else:
		L.remove(0)
		for i in L:
			if i % 2 == 0:
				Test = True
				break
		if nbz == len(ch):
			print('red')
		elif sum(L) % 3 == 0 and Test == True:
			print('red')
		else:
			print('cyan')


n = int(input())
for j in range(n):
	ab = 0
	abc = 0
	e = 0
	test = 0
	c = input()
	for i in range(len(c)):
		e += int(c[i])
		if c[i] == '0':
			abc += 1
		if int(c[i]) % 2 == 0:
			test += 1
	if e % 3 == 0:
		ab = 1
	if abc >= 1 and ab == 1 and (test >= 2):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	n = input()
	(p, q, r) = (0, 0, 0)
	for i in n:
		s = int(i, 10)
		r = r + s
		if i == '0':
			q += 1
		elif s % 2 == 0 and s != 0:
			p = 1
	r = int(r)
	if r % 3 == 0:
		r = 1
	else:
		r = 0
	if p == 1 and q != 0:
		q = 1
	elif p == 0 and q > 1:
		q = 1
		p = 1
	if p == 1 and q == 1 and (r == 1):
		print('red')
	else:
		print('cyan')


l = ['0', '2', '4', '6', '8']
r = []
for i in range(int(input())):
	a = input()
	if '0' in a and sum(list(map(int, a.split()))) % 3 == 0 and any((x in a.replace('0', '', 1) for x in l)):
		r.append('red')
	else:
		r.append('cyan')
for i in r:
	print(i)


n = int(input())
for _ in range(n):
	s1 = input()
	if '0' not in s1:
		print('cyan')
	else:
		x = s = 0
		for i in s1:
			s = s + int(i)
			if int(i) % 2 == 0:
				x += 1
		if s % 3 == 0 and x > 1:
			print('red')
		else:
			print('cyan')


def divisible6(arr):
	evens = total = 0
	for x in arr:
		total = total + x
		if x % 2 == 0:
			evens += 1
	if evens >= 2 and total % 3 == 0:
		return 'red'
	else:
		return 'cyan'

def solution(t):
	for i in range(t):
		s = input()
		n = len(s)
		flag = False
		j = 0
		while j < n:
			if s[j] == '0':
				flag = True
				break
			j += 1
		if not flag:
			print('cyan')
		else:
			arr = map(int, s)
			print(divisible6(arr))

def main():
	t = int(input())
	solution(t)
main()


T = int(input())
for t in range(T):
	s = input()
	n = len(s)
	dig = [0 for i in range(10)]
	total = 0
	for i in range(n):
		dig[ord(s[i]) - ord('0')] += 1
		total = total + ord(s[i]) - ord('0')
	if dig[0] == n:
		print('red')
	elif total % 3 != 0:
		print('cyan')
	else:
		if dig[0] == 0:
			print('cyan')
			continue
		if dig[0] == 1:
			if dig[2] > 0:
				dig[2] -= 1
			elif dig[4] > 0:
				dig[4] -= 1
			elif dig[6] > 0:
				print('red')
				continue
			elif dig[8] > 0:
				dig[8] -= 1
			else:
				print('cyan')
				continue
			flag = False
			for i in range(1, 10):
				if dig[i] > 0:
					flag = True
					break
			if flag:
				print('red')
			else:
				print('cyan')
		else:
			print('red')


for i in range(int(input())):
	sum = 0
	n = [int(x) for x in input()]
	for j in n:
		sum += j
	if 0 in n:
		n.remove(0)
		if 2 in n or 4 in n or 6 in n or (8 in n) or (0 in n):
			if sum % 3 == 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	noms = {}
	x = str(input())
	for j in x:
		i = int(j)
		if i == 0:
			if 2 not in noms:
				noms[2] = 1
			else:
				noms[2] += 1
		if i not in noms:
			noms[i] = 1
		else:
			noms[i] += 1
	flag = False
	if 0 in noms:
		if noms[2] >= 2 or 4 in noms or 6 in noms or (8 in noms):
			s = 0
			for alpha in x:
				s += int(alpha)
			if s % 3 == 0:
				flag = True
				print('red')
	if flag == False:
		print('cyan')


for tc in range(int(input())):
	n = list(input())
	(f1, f2) = (0, 0)
	f3 = 0
	s = 0
	c = 0
	for i in n:
		i = int(i)
		s += i
		if i % 2 == 0:
			c += 1
	if c > 1:
		f1 = 1
	if s % 3 == 0:
		f2 = 1
	if f1 == 1 and f2 == 1:
		if n.count('0') >= 1:
			f3 = 1
	if f1 == 1 and f2 == 1 and (f3 == 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	ar = list(map(int, a))
	ar.sort()
	if sum(ar) % 3 == 0 and 0 in ar and (2 in ar or 4 in ar or 6 in ar or (8 in ar) or (ar[1] == 0)):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	l = list(map(int, input()))
	(s, c, z) = (0, 0, 0)
	for i in range(len(l)):
		s = s + l[i]
		if l[i] % 2 == 0:
			c = c + 1
		if l[i] == 0:
			z = z + 1
	if z and c >= 2 and (s % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	is0 = False
	isev = False
	summ = 0
	for c in s:
		c = int(c)
		if c == 0 and (not is0):
			is0 = True
			continue
		if c % 2 == 0:
			isev = True
		summ += c
	if is0 and isev and (summ % 3 == 0):
		print('red')
	else:
		print('cyan')


def rint():
	return int(input())

def rints():
	return list(map(int, input().split()))
t = rint()
from collections import Counter
for _ in range(t):
	c = Counter(input())
	if c['0'] == 0:
		print('cyan')
		continue
	c['0'] -= 1
	s = sum((i * c[str(i)] for i in range(10)))
	two = any((c[str(i)] > 0 for i in (0, 2, 4, 6, 8)))
	print('red' if s % 3 == 0 and two else 'cyan')


for _ in range(int(input())):
	a = input()
	if sum(map(int, a)) % 3 == 0 and (a.count('0') > 1 or (a.count('0') == 1 and set(a) & set('2468'))):
		print('red')
	else:
		print('cyan')


t = int(input())
for x in range(t):
	n = input()
	c = 0
	for x in range(len(n)):
		if int(n[x]) == 0:
			c += 1
	if c == 0:
		print('cyan')
	else:
		sum = 0
		flag = False
		for x in range(len(n)):
			sum += int(n[x])
			if int(n[x]) % 2 == 0:
				if int(n[x]) == 0 and c == 1:
					continue
				flag = True
		if flag and sum % 3 == 0:
			print('red')
		else:
			print('cyan')


for _ in ' ' * int(input()):
	s = input()
	print('cryeadn'[s.count('0') and sum(map(int, s)) % 3 < 1 and (sum((int(c) % 2 < 1 for c in s)) > 1)::2])


a = int(input())
for i in range(a):
	n = input()
	s = 0
	t = 0
	h = 0
	for g in range(len(n)):
		if int(n[g]) == 0:
			s += 1
		if int(n[g]) % 2 == 0:
			h += 1
		t += int(n[g])
		t = t % 3
	if s == 0:
		print('cyan')
	elif t != 0:
		print('cyan')
	elif s == 2:
		print('red')
	elif s == 1:
		if h > 1:
			print('red')
		else:
			print('cyan')
	elif s > 2:
		print('red')


for i in int(input()) * [0]:
	a = input()
	c = a.count('0') > 1
	if '0' in a and (not sum((int(i) for i in a)) % 3):
		for x in ['2', '4', '6', '8']:
			if x in a or len(set(a)) == 1 or c:
				print('red')
				break
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	flag = True
	x = input()
	s = 0
	ci = 0
	for i in x:
		s += int(i)
		ci += int(int(i) % 2 == 0 and i != '0')
	if s % 3 == 0 and (ci > 0 and x.count('0') > 0 or x.count('0') > 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	zero = False
	even = 0
	s = str(input())
	k = 0
	for i in s:
		if i == '0':
			zero = True
			even += 1
		else:
			if int(i) % 2 == 0:
				even += 1
			k += int(i)
	if zero == True and even > 1 and (k % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	c = 0
	s = 0
	d = 0
	for j in range(len(a)):
		s = s + int(a[j])
		if a[j] == '0':
			c = 1
		if int(a[j]) % 2 == 0:
			d = d + 1
	if c == 1 and s % 3 == 0 and (d >= 2):
		print('red')
	else:
		print('cyan')


from sys import stdin
from collections import deque
from math import sqrt, floor, ceil, log, log2, log10, pi, gcd, sin, cos, asin

def ii():
	return int(stdin.readline())

def fi():
	return float(stdin.readline())

def mi():
	return map(int, stdin.readline().split())

def fmi():
	return map(float, stdin.readline().split())

def li():
	return list(mi())

def lsi():
	x = list(stdin.readline())
	x.pop()
	return x

def si():
	return stdin.readline()
x = {'2', '4', '6', '8'}
for _ in range(ii()):
	a = lsi()
	s = f = e = 0
	for i in a:
		s += int(i)
		if i == '0':
			f += 1
		elif i in x:
			e = 1
	if not s or (f + e > 1 and s % 3 == 0):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	(s, odd, even, zero) = (input(), 0, 0, 0)
	for j in s:
		if int(j) == 0:
			zero += 1
			even += 1
		elif int(j) % 2:
			odd += 1
		else:
			even += 1
	if int(s) == 0:
		print('red')
	elif zero == 0 or even == 0:
		print('cyan')
	elif (int(s) % 6 == 0 or int(s) % 6 == 3) and zero >= 1 and (even >= 2):
		print('red')
	else:
		print('cyan')


def Fun(string):
	if '0' not in string:
		return 'cyan'
	string = string.replace('0', '', 1)
	total = 0
	flag = 0
	for i in string:
		total = total + int(i)
		if int(i) % 2 == 0:
			flag = 1
	if flag == 1 and total % 3 == 0:
		return 'red'
	else:
		return 'cyan'
t = int(input())
for i in range(t):
	n = input()
	ans = Fun(n)
	print(ans)


N = int(input())
for i in range(N):
	num = input().strip()
	if '0' not in num:
		print('cyan')
		continue
	sm = sum([int(x) for x in num])
	if sm == 0:
		print('red')
		continue
	if sm % 3:
		print('cyan')
		continue
	sm2 = num.count('2') + num.count('4') + num.count('8') + num.count('6') + num.count('0')
	if sm2 < 2:
		print('cyan')
		continue
	print('red')


for _ in range(int(input())):
	s = input()
	z = s.count('0')
	sm = 0
	even = 0
	for i in s:
		sm += int(i)
		if int(i) % 2 == 0:
			even += 1
	if sm % 3 == 0 and even > 1 and (z > 0):
		print('red')
	else:
		print('cyan')


import sys

def rint():
	return map(int, sys.stdin.readline().split())

def input():
	return sys.stdin.readline().rstrip('\n')

def oint():
	return int(input())
n = oint()
for _ in range(n):
	y = input()
	if not '0' in y:
		print('cyan')
		continue
	even = 0
	s = 0
	zero = 0
	for c in y:
		i = int(c)
		if zero == 0:
			if i == 0:
				zero = 1
				continue
		if i % 2 == 0:
			even = 1
		s += i
	if s % 3 == 0 and even:
		print('red')
	else:
		print('cyan')


import re
for _ in range(int(input())):
	n = input()
	x = n.find('0')
	if x == -1:
		print('cyan')
		continue
	else:
		n = n[:x] + n[x + 1:]
	(e, s) = (0, 0)
	for i in n:
		if e == 0 and int(i) % 2 == 0:
			e = 1
		s += int(i)
	if s % 3 == 0 and e == 1:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	num = list(map(int, list(input())))
	fl = 0
	sm = 0
	for d in num:
		if d % 2 == 0:
			fl += 1
		sm += d
	print('red' if 0 in num and fl > 1 and (sm % 3 == 0) else 'cyan')


for _ in range(int(input())):
	n = input()
	summa = 0
	state = 0
	dec = 0
	for i in range(len(n)):
		summa += int(n[i])
	if (n.count('0') > 1 or (n.count('0') > 0 and (n.count('2') > 0 or n.count('4') > 0 or n.count('6') > 0 or (n.count('8') > 0)))) and summa % 3 == 0:
		print('red')
	else:
		print('cyan')


import os
import sys
import bisect
from math import gcd, ceil
from heapq import heapify, heappop, heappush
from io import BytesIO, IOBase

def main():
	for _ in range(int(input())):
		n = input()
		(div3, div5, div4) = (False, False, False)
		s = 0
		counteve = 0
		count0 = 0
		for x in n:
			s += int(x)
			if int(x) % 2 == 0 and int(x) != 0:
				counteve += 1
			if int(x) == 0:
				count0 += 1
		if s % 3 == 0:
			div3 = True
		else:
			print('cyan')
			continue
		if count0 > 1 or (count0 == 1 and counteve >= 1):
			print('red')
		else:
			print('cyan')
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = lambda s: self.buffer.write(s.encode()) if self.writable else None

	def read(self):
		if self.buffer.tell():
			return self.buffer.read().decode('ascii')
		return os.read(self._fd, os.fstat(self._fd).st_size).decode('ascii')

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline().decode('ascii')

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

def print(*args, sep=' ', end='\n', file=sys.stdout, flush=False):
	at_start = True
	for x in args:
		if not at_start:
			file.write(sep)
		file.write(str(x))
		at_start = False
	file.write(end)
	if flush:
		file.flush()
(sys.stdin, sys.stdout) = (FastIO(sys.stdin), FastIO(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
sys.setrecursionlimit(10000)
main()


def main():
	n = int(input())
	for i in range(n):
		s = input()
		g = len(s)
		if '0' in s:
			p = s.index('0')
			if p == len(s) - 1:
				s1 = s[0:p]
			else:
				s1 = s[0:p] + s[p + 1:g]
			r = int(s1)
			if r % 3 == 0:
				if '2' in s1 or '4' in s1 or '6' in s1 or ('8' in s1) or ('0' in s1):
					print('red')
				else:
					print('cyan')
			else:
				print('cyan')
		else:
			print('cyan')
main()


for _ in range(int(input())):
	n = sorted(input(), reverse=True)
	n = list(map(int, n))
	c = 0
	for i in range(len(n)):
		if n[i] % 2 == 0:
			(n[i], n[-2]) = (n[-2], n[i])
			break
	if n[-1] == 0 and sum(n[:len(n) - 1]) % 3 == 0:
		print('red')
	else:
		print('cyan')


def check(s):
	c = 0
	for i in s:
		if i % 2 == 0:
			c += 1
	return c
tc = int(input())
for _ in range(tc):
	n = input()
	s = [int(x) for x in n]
	t = sum(s)
	if t == 0:
		print('red')
	elif '0' in n and t % 3 == 0 and (check(s) >= 2):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	n = [int(i) for i in input()]
	set_ = set(n)
	if sum(n) % 3 != 0:
		print('cyan')
	elif 0 not in set_:
		print('cyan')
	elif n.count(0) < 2 and 2 not in set_ and (4 not in set_) and (8 not in set_) and (6 not in set_):
		print('cyan')
	else:
		print('red')


from collections import deque
n = int(input())

def getAns(k):
	d = deque()
	found0 = 0
	foundEven = False
	for i in k:
		if i == '0':
			found0 += 1
		else:
			d.append(int(i))
	if found0 > 1:
		foundEven = True
	else:
		for i in d:
			if i % 2 == 0:
				foundEven = True
				break
	if foundEven and found0 > 0 and (sum(d) % 3 == 0):
		print('red')
	else:
		print('cyan')
for i in range(n):
	getAns(list(input()))


import sys
input = sys.stdin.readline
from bisect import *

def linput(tt=int):
	return list(map(tt, input().split()))

def gcd(a: int, b: int):
	while b:
		(a, b) = (b, a % b)
	return a

def lcm(a: int, b: int):
	return a * b // gcd(a, b)

def main():
	Q = int(input())
	vR = []
	for _ in range(Q):
		S = input().rstrip()
		c = 0
		z = 0
		e = 0
		for s in S:
			d = int(s)
			c += d
			if d == 0:
				z += 1
			if d % 2 < 1:
				e += 1
		R = c % 3 == 0 and z > 0 and (e > 1)
		vR.append(R)
	sT = 'cyan red'.split()
	for r in vR:
		print(sT[r])
main()


from collections import Counter

def check_color(s):
	num = Counter(s)
	summ = sum(map(int, s))
	if summ == 0:
		return 'red'
	elif summ % 3 == 0 and num['0']:
		if num['0'] > 1 or num['2'] or num['4'] or num['6'] or num['8']:
			return 'red'
	return 'cyan'
for _ in range(int(input())):
	print(check_color(input()))


from sys import stdin, stdout
lines = stdin.readlines()

def check(string):
	if int(string) % 3 != 0:
		return False
	index = string.find('0')
	if index == -1:
		return False
	for i in range(index):
		el = string[i]
		if el in {'0', '2', '4', '6', '8'}:
			return True
	for i in range(index + 1, len(string)):
		el = string[i]
		if el in {'0', '2', '4', '6', '8'}:
			return True
	return False
for line in lines[1:]:
	if check(line):
		stdout.write('red')
	else:
		stdout.write('cyan')
	stdout.write('\n')


import sys
from functools import lru_cache, cmp_to_key
from heapq import merge, heapify, heappop, heappush
from math import *
from collections import defaultdict as dd, deque, Counter as C
from itertools import combinations as comb, permutations as perm
from bisect import bisect_left as bl, bisect_right as br, bisect
from time import perf_counter
from fractions import Fraction
sys.setrecursionlimit(int(pow(10, 6)))
mod = int(pow(10, 9) + 7)
mod2 = 998244353

def data():
	return sys.stdin.readline().strip()

def out(*var, end='\n'):
	sys.stdout.write(' '.join(map(str, var)) + end)

def l():
	return list(sp())

def sl():
	return list(ssp())

def sp():
	return map(int, data().split())

def ssp():
	return map(str, data().split())

def l1d(n, val=0):
	return [val for i in range(n)]

def l2d(n, m, val=0):
	return [l1d(n, val) for j in range(m)]
for _ in range(l()[0]):
	n = list(input())
	n = [int(ele) for ele in n]
	if sum(n) % 3 != 0 or 0 not in n:
		print('cyan')
		continue
	else:
		n.sort()
		pos = 0
		del n[0]
		for ele in n:
			if ele % 2 == 0:
				pos = 1
				break
		if pos:
			print('red')
		else:
			print('cyan')


n = int(input())
for i in range(0, n):
	y = input()
	con0 = False
	con3 = False
	con20 = False
	numSum = 0
	for char in y:
		numSum += int(char)
		if char == '0' and (not con0):
			con0 = True
		elif int(char) % 2 == 0:
			con20 = True
	if numSum % 3 == 0:
		con3 = True
	if con0 and con3 and con20:
		print('red')
	else:
		print('cyan')


n = input()
n = int(n)
for i in range(n):
	s = list(map(lambda x: int(x), input()))
	if sum(s) % 3 == 0 and 0 in s and (len([s[i] for i in range(len(s)) if s[i] % 2 == 0 and s[i] != 0]) > 0 or len([s[i] for i in range(len(s)) if s[i] % 2 == 0]) > 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	t = 0
	f = 0
	t1 = 0
	for i in n:
		t += int(i)
		if int(i) == 0:
			t1 += 1
		if int(i) % 2 == 0 and int(i) != 0:
			f = 1
	if t1 > 1:
		f = 1
	if t % 3 != 0:
		print('cyan')
	elif '0' in n:
		if f == 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


import math

def test(val):
	for i in lst:
		test0 = False
		testEv = False
		test3 = False
		numbs = list(i)
		numbs = [int(z) for z in numbs]
		if sum(numbs) % 3 == 0:
			test3 = True
		for x in i:
			if (test0 and x == '0' or (int(x) % 2 == 0 and x != '0')) and (not testEv):
				testEv = True
			if x == '0' and (not test0):
				test0 = True
		if test3 and test0 and testEv or sum(numbs) == 0:
			print('red')
		else:
			print('cyan')
w = int(input(''))
lst = []
for i in range(w):
	lst.append(input(''))
test(lst)


for i in range(int(input())):
	a = input()
	c = 0
	e = 0
	for i in a:
		c += int(i)
	if a.count('0') >= 2:
		if c % 3 == 0:
			print('red')
		else:
			print('cyan')
	elif a.count('0') == 1:
		a = list(a)
		a.remove('0')
		m = set(a)
		for i in m:
			if int(i) % 2 == 0 and c % 3 == 0:
				print('red')
				e = 1
				break
		if e == 0:
			print('cyan')
	else:
		print('cyan')


import sys
import math
import heapq
import collections

def inputnum():
	return int(input())

def inputnums():
	return map(int, input().split())

def inputlist():
	return list(map(int, input().split()))

def inputstring():
	return [x for x in input()]

def inputstringnum():
	return [ord(x) - ord('0') for x in input()]

def inputmatrixchar(rows):
	arr2d = [[j for j in input().strip()] for i in range(rows)]
	return arr2d

def inputmatrixint(rows):
	arr2d = []
	for _ in range(rows):
		arr2d.append([int(i) for i in input().split()])
	return arr2d
t = int(input())
for q in range(t):
	s = inputstringnum()
	sm = 0
	even = 0
	zero = 0
	for i in range(len(s)):
		sm += s[i]
		if s[i] % 2 == 0:
			even += 1
		if s[i] == 0:
			zero += 1
	if sm % 3 == 0 and even > 1 and zero:
		print('red')
	else:
		print('cyan')


t = int(input())
while t:
	t -= 1
	a = input()
	even = ['2', '4', '6', '8', '0']
	s = 0
	flag = 0
	flag1 = 0
	co = 0
	if a.count('0') == len(a):
		print('red')
		continue
	for i in a:
		s += int(i)
	for i in a:
		if i == '0':
			co += 1
		if int(i) % 2 == 0:
			if co > 1 or i != '0':
				flag1 = 1
	f = a.count('0')
	if s % 3 == 0:
		flag = 1
	if flag == 1 and flag1 == 1 and (f != 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = input().strip()
	f2 = 0
	f10 = 0
	sum = 0
	for i in range(len(s)):
		sum += int(s[i])
	for i in range(len(s)):
		if s[i] == '0':
			f10 = 1
			s = s[:i] + s[i + 1:]
			break
	for i in range(len(s)):
		if int(s[i]) % 2 == 0:
			f2 = 1
			break
	if f2 and f10 and (sum % 3 == 0):
		print('red')
	else:
		print('cyan')


a = int(input())
for w in list(range(a)):
	b = list(input())
	if int(''.join(b)) == 0:
		print('red')
	elif '0' in b:
		b.remove('0')
		if '0' in b or '2' in b or '4' in b or ('6' in b) or ('8' in b):
			if sum(list(map(int, b))) % 3 == 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


from copy import copy

def arr_float_inp():
	return [float(s) for s in input().split()]

def arr_int_inp():
	return [int(s) for s in input().split()]

def int_inp():
	return int(input())

def float_inp():
	return float(input())

def comp(a):
	return a[0]
for _ in range(int_inp()):
	arr = {}
	for el in input():
		if el in arr:
			arr[el] += 1
		else:
			arr[el] = 1
	if '0' not in arr:
		print('cyan')
	else:
		sum = 0
		flag = arr['0'] > 1
		for el in arr:
			sum += int(el) * arr[el]
			if int(el) != 0 and int(el) % 2 == 0:
				flag = True
		if sum == 0 or (sum % 3 == 0 and flag):
			print('red')
		else:
			print('cyan')


import sys
reader = (line.rstrip() for line in sys.stdin)
input = reader.__next__
t = int(input())
for _ in range(t):
	ds = list(map(int, input()))
	try:
		i = ds.index(0)
	except ValueError:
		print('cyan')
		continue
	del ds[i]
	even = False
	for el in ds:
		if not el & 1:
			even = True
			break
	if even and sum(ds) % 3 == 0:
		print('red')
	else:
		print('cyan')


t = int(input())
for test in range(t):
	delta = list(str(input()))
	summ = 0
	even = 0
	num0 = 0
	n = len(delta)
	for i in range(n):
		x = int(delta[i])
		if x == 0:
			num0 += 1
		if x == 2 or x == 4 or x == 6 or (x == 8):
			even = 1
		summ += x
	if num0 == 1 and summ % 3 == 0 and (even == 1) or num0 == n or (num0 > 1 and summ % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	sum = 0
	f = False
	f2 = False
	k = 1
	a = input()
	for _ in range(len(a)):
		sum += int(a[_])
		if (int(a[_]) == 0) & k == 1:
			f = 1
			k = 0
			continue
		if int(a[_]) * 2 % 4 == 0:
			f2 = 1
	if f == 1 & (sum % 3 == 0) & f2 == 1:
		print('red')
	else:
		print('cyan')


def f(s):
	for n in s:
		if n % 2 == 0 and n != 0:
			return True
	return False
for n in range(int(input())):
	s = list(map(int, input()))
	k = s.count(0)
	j = sum(s)
	if j % 3 != 0:
		print('cyan')
	elif f(s) and k >= 1:
		print('red')
	elif j == 0:
		print('red')
	elif not f(s) and k > 1:
		print('red')
	else:
		print('cyan')


def color(str):
	lis = []
	for i in str:
		lis.append(int(i))
	flag = 0
	if 0 not in lis:
		return 'cyan'
	elif lis.count(0) == 1:
		lis.remove(0)
		if sum(lis) % 3 != 0:
			return 'cyan'
		else:
			for j in lis:
				if j % 2 == 0:
					return 'red'
			return 'cyan'
	elif sum(lis) % 3 == 0:
		return 'red'
	else:
		return 'cyan'
n = int(input())
for i in range(n):
	str1 = input()
	x = color(str1)
	print(x)


import sys
input = sys.stdin.readline
inf = 100000000000000000
mod = 998244353
for CASES in range(int(input())):
	S = input().strip()
	flag = 0
	sum = 0
	flagzero = 0
	for s in S:
		if s == '0' or s == '2' or s == '4' or (s == '6') or (s == '8'):
			flag += 1
		if s == '0':
			flagzero = 1
		sum += ord(s) - 48
	if flag > 1 and sum % 3 == 0 and (flagzero == 1):
		print('red')
	else:
		print('cyan')


for _ in range(0, int(input())):
	a = input()
	n = [int(i) for i in a]
	if n.count(0) < 1:
		print('cyan')
	else:
		n.remove(0)
		s = 0
		c = 0
		for i in range(0, len(n)):
			if n[i] % 2 == 0:
				c = c + 1
			s = s + n[i]
		if s % 3 == 0 and c >= 1:
			print('red')
		else:
			print('cyan')


from math import floor, ceil
t = int(input())
for _ in range(t):
	n = list(input())
	n.sort()
	if n[0] == '0' and sum(map(int, n[1:])) % 3 == 0 and any(map(lambda x: x % 2 == 0, map(int, n[1:]))):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	c = 0
	a = 0
	b = 0
	z = 1
	for j in range(len(s)):
		c = c + int(s[j])
		if s[j] != '0' or s.count('0') > 1:
			if int(s[j]) % 2 == 0:
				b = 1
	if c % 3 == 0:
		a = 1
	if '0' not in s:
		z = 0
	if a and b and z:
		print('red')
	else:
		print('cyan')


num = int(input())
for z in range(0, num):
	n = input()
	list1 = [int(x) for x in n]
	flag = 0
	sum = 0
	s = set(list1)
	if s.__contains__(0) and len(s) == 1:
		flag = 1
	if list1.__contains__(0):
		ind = list1.index(0)
		list1.pop(ind)
		for j in list1:
			sum = sum + j
		if sum % 3 == 0 and (list1.__contains__(2) or list1.__contains__(4) or list1.__contains__(6) or list1.__contains__(8) or list1.__contains__(0)):
			flag = 1
	if flag == 1:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	num = input()
	three = 0
	zero = 0
	even = 0
	for digit in num:
		d = int(digit)
		three += d % 3
		if d % 2 == 0:
			even += 1
			if d == zero:
				zero += 1
	if three % 3 == 0 and zero > 0 and (even > 1):
		print('red')
	else:
		print('cyan')


from __future__ import division, print_function

def main():
	import sys
	data = iter(sys.stdin.buffer.read().decode('ascii').split())
	n = int(next(data))
	res = [None] * n
	for i in range(n):
		digits = {i: 0 for i in range(10)}
		s = next(data)
		for c in s:
			digits[int(c)] += 1
		s = ''.join(sorted(s))
		if s == '0' or s == '00' or s == '06':
			res[i] = 'red'
		elif len(s) <= 2 or digits[0] == 0:
			res[i] = 'cyan'
		else:
			tot = sum((k * v for (k, v) in digits.items())) % 3
			digits[0] -= 1
			p = sum((digits[2 * j] for j in range(5)))
			if tot == 0 and p > 0:
				res[i] = 'red'
			else:
				res[i] = 'cyan'
	sys.stdout.buffer.write('\n'.join((str(x) for x in res)).encode('ascii'))
	return 0
main()


for _ in range(int(input())):
	n = input()
	ans = 0
	cnt = 0
	even = 0
	for i in n:
		ans += int(i)
		if i == '0':
			cnt += 1
		if int(i) > 0 and int(i) % 2 == 0:
			even += 1
	if cnt > 0 and even > 0 and (ans % 3 == 0):
		print('red')
	elif cnt > 1 and ans % 3 == 0:
		print('red')
	elif int(n) == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	s = cou = 0
	f = False
	for x in str(n):
		s += int(x)
		if int(x) == 0:
			f = True
		if int(x) % 2 == 0:
			cou += 1
	if f and s % 3 == 0 and (cou > 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	y = input()
	a1 = 0
	a2 = 0
	a3 = 0
	for i in y:
		k = int(i)
		if a1 == 0 and k == 0:
			a1 = 1
		elif k % 2 == 0:
			a2 = 1
		a3 += k
	if a3 % 3 == 0 and a1 and a2:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	x = input()
	(hasz, hasd, ans) = (0, 0, 0)
	for b in x:
		a = int(b)
		if a == 0:
			hasz += 1
		if a % 2 == 0:
			hasd += 1
		ans += a
	if hasz:
		hasd -= 1
	if hasz and hasd and (ans % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	num = input()
	zero = False
	two = False
	three = False
	s = 0
	for j in num:
		if int(j) == 0 and (not zero):
			zero = True
			continue
		if not two and int(j) % 2 == 0:
			two = True
		s += int(j)
	if s % 3 == 0:
		three = True
	if zero and two and three:
		print('red')
	else:
		print('cyan')


N = int(input())
for i in range(N):
	S = input()
	if int(S) == 0:
		print('red')
	else:
		num0s = 0
		num2s = 0
		num4s = 0
		num6s = 0
		num8s = 0
		if len(S) >= 2:
			s1 = 0
			for num in S:
				s1 += int(num)
				if num == '0':
					num0s += 1
				elif num == '2':
					num2s += 1
				elif num == '4':
					num4s += 1
				elif num == '6':
					num6s += 1
				elif num == '8':
					num8s += 1
			if s1 % 3 != 0:
				print('cyan')
				continue
			elif num0s > 0 and (num2s > 0 or num4s > 0 or num6s > 0 or (num8s > 0)) or num0s >= 2:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	f = 0
	q = 0
	x = input()
	m = len(x)
	s = m
	y = int(x)
	h = len(str(y))
	z = 0
	count = 0
	while m:
		p = y % 10
		r = y % 2
		if p == 0:
			f = 1
			count += 1
		if r == 0 and p != 0:
			q = 1
		z += p
		y = y // 10
		m -= 1
	if z % 3 == 0 and f == 1 and (q == 1 or (count >= 2 and s - h >= 0)):
		print('red')
	elif int(x) == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	digits = [int(__) for __ in input()]
	a = 0
	sum_ = sum(digits)
	for i in digits:
		if i == 0:
			a += 1
			digits[digits.index(i)] = -1
			break
	for i in digits:
		if i % 2 == 0:
			a += 1
			break
	if sum_ % 3 == 0:
		a += 1
	if a == 3:
		print('red')
	else:
		print('cyan')


for _ in [0] * int(input()):
	s = input()
	count0 = 0
	count2 = 0
	sum = 0
	for i in s:
		if int(i) == 0:
			count2 += 1
			count0 += 1
		elif int(i) % 2 == 0:
			count2 += 1
		sum += int(i)
	if count0 > 0 and count2 > 1 and (sum % 3 == 0):
		print('red')
	elif sum == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	b1 = False
	b2 = False
	s = 0
	v = str(input())
	for c in v:
		c = int(c)
		if c == 0 and (not b1):
			b1 = True
			continue
		s += c
		if c % 2 == 0:
			b2 = True
	if s % 3 == 0 and b1 and b2:
		print('red')
	else:
		print('cyan')


n = int(input())
ls_x = []
for i in range(n):
	ls_x.append(str(input()))
for i in range(n):
	temp_s = list(map(int, ls_x[i]))
	if 0 not in temp_s or sum(temp_s) % 3 != 0:
		print('cyan')
		continue
	else:
		temp_s.remove(0)
	if 0 not in temp_s and 2 not in temp_s and (4 not in temp_s) and (6 not in temp_s) and (8 not in temp_s):
		print('cyan')
	else:
		print('red')


tests = int(input())
for __ in range(tests):
	digits = input()
	count_digit = dict()
	for digit in digits:
		count_digit[digit] = 1 + count_digit.get(digit, 0)
	if count_digit.get('0', 0) is 0:
		print('cyan')
	else:
		count_digit['0'] -= 1
		even_present = 0
		sum = 0
		for item in count_digit:
			sum += int(item) * count_digit.get(item, 0)
			if even_present is 0 and int(item) % 2 is 0 and count_digit.get(item, 0):
				even_present = 1
		if sum % 3 is 0 and even_present:
			print('red')
		else:
			print('cyan')


from sys import stdin, stdout
import math
from bisect import bisect_left, bisect_right
input = lambda : stdin.readline().strip()
print = lambda s: stdout.write(s)
n = int(input())
for i in range(n):
	s = input()
	s = ''.join(sorted(list(s)))
	if s[0] != '0':
		print('cyan\n')
	elif sum((int(i) for i in s)) % 3 != 0:
		print('cyan\n')
	else:
		for i in range(1, len(s)):
			if int(s[i]) % 2 == 0:
				print('red\n')
				break
		else:
			print('cyan\n')


for i in range(int(input())):
	a = sorted(map(int, list(input())))
	print('red' if 0 == a[0] and sum(a) % 3 == 0 and any((i % 2 == 0 for i in a[1:])) else 'cyan')


for i in range(int(input())):
	a = input()
	p = 0
	s = 0
	zero = 0
	for j in range(len(a)):
		o = int(a[j])
		p += o
		if o % 2 == 0 and o != 0:
			s += 1
		if o == 0:
			zero += 1
	if s == 0 and p % 3 == 0 and (zero > 1):
		print('red')
	elif s > 0 and p % 3 == 0 and (zero > 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = [int(i) for i in input()]
	evens = 0
	sum = 0
	hasZero = False
	for i in n:
		if i % 2 == 0:
			evens += 1
		if i == 0:
			hasZero = True
		sum = (sum + i) % 3
	if len(n) == 1:
		evens += 1
	if not hasZero or sum != 0 or evens < 2:
		print('cyan')
	else:
		print('red')


t = int(input())
for i in range(t):
	n = input()
	zeroFound = False
	digitSum = 0
	evenFound = False
	for digit in n:
		d = int(digit)
		digitSum += d
		if d % 2 == 0:
			if int(digit) == 0:
				if zeroFound:
					evenFound = True
				zeroFound = True
			else:
				evenFound = True
	if zeroFound and evenFound and (digitSum % 3 == 0):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	a = input()
	if int(a) % 60 != 0:
		li = []
		flag = 0
		for j in a:
			li.append(int(j))
		if 0 in li:
			if sum(li) % 3 == 0:
				for i in li:
					if i % 2 == 0:
						flag += 1
						if flag > 1:
							print('red')
							break
				if flag < 2:
					print('cyan')
					continue
			else:
				print('cyan')
				continue
		else:
			print('cyan')
			continue
	else:
		print('red')


for i in range(int(input())):
	a = input()
	s = 0
	c = 0
	for i in a:
		s += int(i)
		if int(i) % 2 == 0:
			c += 1
	if c > 1 and a.count('0') > 0 and (s % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	s = [int(x) for x in input().strip()]
	if s.count(0) > 0 and sum(s) % 3 == 0 and (s.count(0) > 1 or s.count(4) > 0 or s.count(2) > 0 or (s.count(6) > 0) or (s.count(6) > 0) or (s.count(8) > 0) or (sum(s) == 0)):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = list(map(str, input()))
	z = 0
	ev = 0
	tmp = 0
	for i in n:
		if int(i) == 0:
			z += 1
		if int(i) % 2 == 0:
			ev += 1
		tmp += int(i)
	if tmp % 3 == 0 and z > 0 and (ev > 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	sm = sum([int(x) for x in s])
	if s.count('0') == 0:
		print('cyan')
		continue
	if any([x in s for x in '2468'] + [s.count('0') > 1]) and sm % 3 == 0:
		print('red')
	else:
		print('cyan')


import sys
import collections
import heapq
import math
import bisect
input = sys.stdin.readline

def rints():
	return map(int, input().strip().split())

def rstr():
	return input().strip()

def rint():
	return int(input().strip())

def rintas():
	return [int(i) for i in input().strip().split()]

def gcd(a, b):
	if b == 0:
		return a
	return gcd(b, a % b)
n = rint()
for _ in range(n):
	y = rstr()
	if y.find('0') == -1:
		print('cyan')
	else:
		sm = sum([int(i) for i in y])
		d2 = any([int(i) > 1 and int(i) % 2 == 0 for i in y])
		cnts = collections.Counter(y)
		if sm == 0:
			print('red')
		elif len(y) <= 2:
			if y not in ['60', '06', '00']:
				print('cyan')
			else:
				print('red')
		elif sm % 3 == 0 and (d2 or cnts['0'] > 1):
			print('red')
		else:
			print('cyan')


t = int(input())
for _ in range(t):
	n = input()
	e = 0
	c = 0
	z = 0
	for i in n:
		if int(i) % 2 == 0:
			if int(i) == 0 and z != 1:
				z += 1
			elif e != 1:
				e = 1
		c += int(i)
	if c == 0:
		print('red')
	elif e == 1 and c % 3 == 0 and (z != 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	s = input()
	a = sum(map(int, list(s)))
	b = s.count('0') + s.count('2') + s.count('4') + s.count('6') + s.count('8')
	c = s.count('0')
	if a % 3 == 0 and b > 1 and (c > 0):
		print('red')
	else:
		print('cyan')


def f(s):
	d2 = 0
	d5 = 0
	sum = 0
	for i in range(len(s)):
		if int(s[i]) % 2 == 0:
			d2 += 1
		sum += int(s[i])
		if s[i] == '0':
			d5 += 1
	if d2 >= 2 and sum % 3 == 0 and (d5 >= 1):
		return 'red'
	else:
		return 'cyan'
n = int(input())
for i in range(n):
	s = input()
	print(f(s))


for v in range(int(input())):
	x = input()
	s = 0
	for j in range(len(x)):
		s += int(x[j])
	e = 0
	for i in x:
		if int(i) % 2 == 0:
			e += 1
	if e >= 2 and s % 3 == 0 and (x.count('0') >= 1):
		print('red')
	else:
		print('cyan')


from collections import Counter
t = int(input())
for test in range(t):
	n = {int(k): v for (k, v) in Counter(input()).items()}
	answer = 'cyan'
	if 0 in n:
		n[0] -= 1
		if n[0] == 0:
			del n[0]
		if not all([k % 2 for k in n]) and sum([k * n[k] for k in n]) % 3 == 0:
			answer = 'red'
	print(answer)


def solve():
	s = input()
	digit_sum = 0
	even_cnt = 0
	zero_cnt = 0
	for x in s:
		if int(x) == 0:
			zero_cnt += 1
		elif int(x) % 2 == 0:
			even_cnt += 1
		digit_sum += int(x)
	if digit_sum % 3 == 0 and (zero_cnt >= 2 or (even_cnt >= 1 and zero_cnt >= 1)):
		print('red')
	else:
		print('cyan')
t = int(input())
for _ in range(t):
	solve()


n = input()
i = 0
divisibleBy2 = False
divisibleBy10 = False
for i in range(0, int(n)):
	divisibleBy2 = False
	divisibleBy10 = False
	valStr = input()
	digitSum = 0
	while len(valStr) != 0:
		digit = int(valStr[-1])
		valStr = valStr[:-1]
		digitSum += digit
		if digit == 0 and (not divisibleBy10):
			divisibleBy10 = True
		else:
			divisibleBy2 = divisibleBy2 or digit % 2 == 0
	if digitSum % 3 == 0 and divisibleBy10 and divisibleBy2:
		print('red')
	else:
		print('cyan')
	i = i + 1


def evenExists(num):
	evenCount = 0
	i = 0
	while evenCount < 2 and i < len(num):
		if num[i] % 2 == 0:
			evenCount += 1
		i += 1
	if evenCount >= 2:
		return True
	return False
t = int(input())
while t:
	num = [int(x) for x in input()]
	s = sum(num)
	if s % 3 == 0 and evenExists(num) and (0 in num):
		print('red')
	else:
		print('cyan')
	t -= 1


a = int(input())
for i in range(0, a):
	b = list(input())
	flag = 0
	if '0' in b:
		b.remove('0')
		for j in b:
			if int(j) % 2 == 0:
				flag = 1
				break
		su = sum(list(map(int, b)))
		if su % 3 != 0:
			flag = 0
	if flag == 1:
		print('red')
	else:
		print('cyan')


for n in range(int(input())):
	s = list(input())
	f = 0
	f1 = 0
	sum = 0
	for i in s:
		if int(i) == 0:
			s.remove('0')
			f = 1
			break
	if f == 1:
		for i in s:
			sum += int(i)
			if int(i) % 2 == 0:
				f1 = 1
		if f1 == 1:
			if sum % 3 == 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


for _ in range(int(input())):
	s = input()
	z = s.count('0')
	c = 0
	f1 = 0
	f2 = 0
	for i in range(len(s)):
		c += int(s[i])
		if int(s[i]) % 2 == 0 and int(s[i]) != 0:
			f1 = 1
		elif int(s[i]) == 0:
			f2 = 1
	if c % 3 == 0 and f1 == 1 and (z > 0):
		print('red')
	elif c % 3 == 0 and f2 == 1 and (z > 1):
		print('red')
	else:
		print('cyan')


q = int(input())
while q:
	a = input()
	x = 0
	y = False
	f = False
	for i in a:
		if int(i) % 2 == 0 and int(i) != 0:
			y = True
		if int(i) == 0:
			f = True
		x += int(i)
	y = y or a.count('0') >= 2
	if x % 3 == 0 and y and f or a.count('0') == len(a):
		print('red')
	else:
		print('cyan')
	q -= 1


t = int(input())
for _ in range(t):
	s = input()
	sum = 0
	z = False
	even = 0
	for i in s:
		n = int(i)
		if not n:
			z = True
		if not n % 2:
			even += 1
		sum += n
	if sum % 3 == 0 and z and (even >= 2):
		print('red')
	else:
		print('cyan')


import sys

def minp():
	return sys.stdin.readline().strip()

def mint():
	return int(minp())

def mints():
	return map(int, minp().split())
for i in range(mint()):
	x = minp()
	s = 0
	ok = 0
	zero = False
	for c in x:
		x = int(c)
		s += x
		if x % 2 == 0:
			ok += 1
		zero = zero or x == 0
	if zero and ok > 1 and (s % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
items = []
for _ in range(n):
	value = input()
	items.append(value)
for item in items:
	flag = 0
	if '0' not in item:
		flag = 1
	s = 0
	even = 0
	for digit in item:
		s += int(digit)
		if int(digit) % 2 == 0:
			even += 1
	if s % 3 != 0:
		flag = 1
	if even < 2:
		flag = 1
	if flag == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	ss = 0
	c = 0
	z = 0
	for k in s:
		ss += int(k)
		if int(k) % 2 == 0 and k != '0':
			c = 1
		if int(k) == 0:
			z += 1
	if ss % 3 != 0:
		print('cyan')
	elif c == 1 and z >= 1:
		print('red')
	elif c == 0 and z == 1:
		print('cyan')
	elif c == 0 and z > 1:
		print('red')
	else:
		print('cyan')


tests = int(input())
while tests:
	tests -= 1
	n = input()
	l = [int(x) for x in n]
	s = sum(l)
	l1 = [x for x in l if x % 2 == 0]
	if '0' in n and s % 3 == 0 and (len(l1) >= 2):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	a = sorted(map(int, list(input())))
	g = sum(a)
	m = []
	for j in range(1, len(a)):
		if g % 3 == 0 and a.count(0) > 0 and (a[j] % 2 == 0):
			m.append('red')
		else:
			m.append('cyan')
	if m.count('red') == 0 and len(m) != 0:
		print('cyan')
	elif m.count('red') > 0 and len(m) != 0:
		print('red')


def divisible6(arr):
	if sum(arr) % 3 != 0:
		return 'cyan'
	else:
		evens = 0
		for i in arr:
			if not i & 1:
				evens += 1
				if evens == 2:
					return 'red'
		return 'cyan'

def solution(t):
	out = []
	for i in range(t):
		arr = list(map(int, input()))
		if 0 not in arr:
			out.append('cyan')
		else:
			out.append(divisible6(arr))
	print('\n'.join(map(str, out)))

def main():
	t = int(input())
	solution(t)
main()


for _ in range(int(input())):
	n = 0
	s = input()
	ev = 0
	for i in s:
		if int(i) % 2 == 0 and i != '0':
			ev = 1
		n += int(i)
	print('red' if n % 3 == 0 and (ev or s.count('0') > 1) and ('0' in s) or n == 0 else 'cyan')


for _ in range(int(input())):
	x = input()
	flag = False
	arr = [0] * 10
	sum = 0
	co = 0
	for i in x:
		y = int(i)
		if y == 0:
			co += 1
		arr[y] += 1
		sum += y
		if y % 2 == 0 and y != 0:
			flag = True
		if co > 1:
			flag = True
	if arr[0] != 0 and sum % 3 == 0 and flag:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	string = input()
	s = 0
	zero_count = 0
	even = 0
	for i in string:
		x = int(i)
		s += x
		if x == 0:
			zero_count += 1
		elif x % 2 == 0:
			even = 1
	if zero_count + even >= 2 and s % 3 == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	sum = 0
	n = input()
	gotEven = False
	gotZero = False
	for i in n:
		sum += int(i)
		if int(i) == 0:
			if gotZero == True and int(i) == 0:
				gotEven = True
			gotZero = True
		if i in '2468':
			gotEven = True
	if gotZero == True and gotEven == True and (sum % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	y = input()
	set_of_chars = ()
	set_of_chars = set(y)
	number_of_zeros = 0
	sum = 0
	contatins_zero = False
	contatins_odd = False
	for c in y:
		sum += int(c)
		if int(c) == 0:
			contatins_zero = True
			number_of_zeros += 1
		if int(c) % 2 == 0 and int(c) != 0 or (int(c) % 2 == 0 and number_of_zeros > 1):
			contatins_odd = True
	if sum % 3 == 0 and contatins_zero and contatins_odd:
		print('red')
	elif len(set_of_chars) == 1 and set_of_chars.pop() == '0':
		print('red')
	else:
		print('cyan')


from sys import stdin
input = lambda : stdin.readline().strip()
from math import ceil, sqrt, factorial, gcd
from collections import deque

def aise(n):
	c = 0
	for i in n:
		if int(i) % 2 == 0:
			c += 1
	while len(n) > 1:
		x = 0
		for i in n:
			x += int(i)
		n = str(x)
	if c >= 2 and int(n) % 3 == 0:
		return 1
	return 0
for _ in range(int(input())):
	n = input()
	if '0' in n and aise(n):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	L = [*map(int, list(input()))]
	if len(set(L)) == 1 and 0 in set(L):
		print('red')
		continue
	if 0 not in set(L):
		print('cyan')
		continue
	L.remove(0)
	if sum(L) % 3 == 0 and len([x for x in L if x % 2 == 0]) > 0:
		print('red')
	else:
		print('cyan')


import sys, os, io
from sys import stdin
from math import log, gcd, ceil
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from bisect import bisect_left, bisect_right
import math
alphabets = list('abcdefghijklmnopqrstuvwxyz')

def isPrime(x):
	for i in range(2, x):
		if i * i > x:
			break
		if x % i == 0:
			return False
	return True

def ncr(n, r, p):
	num = den = 1
	for i in range(r):
		num = num * (n - i) % p
		den = den * (i + 1) % p
	return num * pow(den, p - 2, p) % p

def primeFactors(n):
	l = []
	while n % 2 == 0:
		l.append(2)
		n = n / 2
	for i in range(3, int(math.sqrt(n)) + 1, 2):
		while n % i == 0:
			l.append(int(i))
			n = n / i
	if n > 2:
		l.append(n)
	return list(set(l))

def power(x, y, p):
	res = 1
	x = x % p
	if x == 0:
		return 0
	while y > 0:
		if y & 1 == 1:
			res = res * x % p
		y = y >> 1
		x = x * x % p
	return res

def SieveOfEratosthenes(n):
	prime = [True for i in range(n + 1)]
	p = 2
	while p * p <= n:
		if prime[p] == True:
			for i in range(p * p, n + 1, p):
				prime[i] = False
		p += 1
	return prime

def countdig(n):
	c = 0
	while n > 0:
		n //= 10
		c += 1
	return c

def si():
	return input()

def prefix_sum(arr):
	r = [0] * (len(arr) + 1)
	for (i, el) in enumerate(arr):
		r[i + 1] = r[i] + el
	return r

def divideCeil(n, x):
	if n % x == 0:
		return n // x
	return n // x + 1

def ii():
	return int(input())

def li():
	return list(map(int, input().split()))

def ws(s):
	sys.stdout.write(s + '\n')

def wi(n):
	sys.stdout.write(str(n) + '\n')

def wia(a):
	sys.stdout.write(' '.join([str(x) for x in a]) + '\n')

def power_set(L):
	cardinality = len(L)
	n = 2 ** cardinality
	powerset = []
	for i in range(n):
		a = bin(i)[2:]
		subset = []
		for j in range(len(a)):
			if a[-j - 1] == '1':
				subset.append(L[j])
		powerset.append(subset)
	powerset_orderred = []
	for k in range(cardinality + 1):
		for w in powerset:
			if len(w) == k:
				powerset_orderred.append(w)
	return powerset_orderred

def fastPlrintNextLines(a):
	print('\n'.join(map(str, a)))

def sortByFirstAndSecond(A):
	A = sorted(A, key=lambda x: x[0])
	A = sorted(A, key=lambda x: x[1])
	return list(A)
if os.path.exists('input.txt'):
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')
t = 1
t = int(input())
for _ in range(t):
	y = list(si())
	if '0' in y:
		y.remove('0')
		f = 0
		s = 0
		for i in y:
			if int(i) % 2 == 0:
				f = 1
			s += int(i)
		if s % 3 == 0 and f == 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
y = list((str(input()) for _ in range(n)))
for elem in y:
	(res, zero, four) = (0, False, False)
	for dig in elem:
		res += int(dig)
		if not zero and dig == '0':
			zero = True
		elif int(dig) == 0 and zero or int(dig) in (2, 4, 6, 8):
			four = True
	if res % 3 == 0 and zero and four:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = list(str(input()))
	(f1, f2, f3) = (0, 0, 0)
	for j in s:
		k = int(j)
		if k == 0:
			f1 += 1
		elif k % 2 == 0:
			f2 += 1
		f3 += k
	f2 = f2 > 0 or f1 > 1
	f1 = f1 > 0
	f3 = f3 % 3 == 0
	if f1 * f2 * f3:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	time = input()
	temp = time
	Sum = 0
	Check = [False] * 10
	DoubleZero = False
	for i in time:
		Sum += int(i)
		if i == '0':
			if Check[0]:
				DoubleZero = True
			else:
				Check[0] = True
		elif i == '2':
			Check[2] = True
		elif i == '4':
			Check[4] = True
		elif i == '6':
			Check[6] = True
		elif i == '8':
			Check[8] = True
	if Sum % 3 == 0 and Check[0] and (Check[2] or Check[4] or Check[6] or Check[8] or DoubleZero):
		print('red')
	elif Sum == 0:
		print('red')
	else:
		print('cyan')


t = int(input())
w = 0
for k in range(t):
	a = input()
	a = list(a)
	l = [0 for i in range(10)]
	evv = 0
	for i in range(len(a)):
		if a[i] == '0':
			l[0] += 1
			evv += 1
		if a[i] == '1':
			l[1] += 1
		if a[i] == '2':
			l[2] += 1
			evv += 1
		if a[i] == '3':
			l[3] += 1
		if a[i] == '4':
			l[4] += 1
			evv += 1
		if a[i] == '5':
			l[5] += 1
		if a[i] == '6':
			l[6] += 1
			evv += 1
		if a[i] == '7':
			l[7] += 1
		if a[i] == '8':
			l[8] += 1
			evv += 1
		if a[i] == '9':
			l[9] += 1
	sumn = 0
	for w in range(0, 10):
		sumn += l[w] * w
	qw = 0
	if l[0] >= 1 and evv >= 2:
		if sumn % 3 == 0:
			print('red')
			qw = 1
	if qw == 0:
		print('cyan')


import math

def zero(lis):
	for i in lis:
		if i == 0:
			return 'true'
	return 'false'

def even1(lis):
	count = 0
	for i in lis:
		if i % 2 == 0:
			if i == 0 and count == 0:
				count += 1
			else:
				return 'true'
	return 'false'

def re_arrange(num):
	b = []
	for i in num:
		if int(i) == 0:
			i = 0
		b.append(list((int(j) for j in str(i))))
	for i in b:
		if sum(i) % 3 == 0 and zero(i) == 'true' and (even1(i) == 'true' or (len(i) == 1 and i[0] == 0)):
			print('red')
		else:
			print('cyan')
num = []
for i in range(int(input())):
	j = input()
	num.append(j)
re_arrange(num)


for i in range(int(input())):
	n = input()
	count = 0
	c = 0
	c1 = 0
	for i in range(len(n)):
		count = count + int(n[i])
		if int(n[i]) == 0:
			c = c + 1
		if int(n[i]) % 2 == 0 and int(n[i]) != 0:
			c1 = c1 + 1
	if c == len(n):
		print('red')
		continue
	if c >= 2 and count % 3 == 0:
		print('red')
		continue
	if c >= 1 and c1 >= 1 and (count % 3 == 0):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	s = input()
	if s.count('0') and sum((int(x) % 2 == 0 for x in s)) > 1 and (sum((int(x) for x in s)) % 3 == 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = str(input())
	a = sum(map(int, list(s)))
	if '0' in s and a % 3 == 0 and ('2' in s or '4' in s or '6' in s or ('8' in s) or (s.count('0') > 1)):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = list(input())
	f = 0
	g = 0
	if n.count('0') > 0:
		n.remove('0')
		for i in range(len(n)):
			if int(n[i]) % 2 == 0:
				f = 1
		sum = 0
		for i in range(len(n)):
			sum += int(n[i])
		if sum % 3 == 0:
			g = 1
		if f == 1 and g == 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input().strip())
for _ in range(n):
	s = [int(x) for x in input()]
	if 0 in s and sum(s) % 3 == 0 and (len([x for x in s if x % 2 == 0]) > 1):
		print('red')
	else:
		print('cyan')


t = int(input())
for y in range(t):
	s = input()
	o = e = z = 0
	for i in s:
		if int(i) % 2 == 0:
			e += 1
		if i == '0':
			z += 1
		o += int(i)
	if o % 3 == 0 and e >= 2 and (z >= 1):
		print('red')
	else:
		print('cyan')


def solve():
	n = input()
	L = [int(ele) for ele in n]
	if not list(filter(lambda ele: ele != 0, L)):
		print('red')
	elif 0 not in L:
		print('cyan')
	else:
		L.remove(0)
		if 0 not in [ele % 2 for ele in L]:
			print('cyan')
		elif sum(L) % 3 == 0:
			print('red')
		else:
			print('cyan')
q = int(input())
while q:
	solve()
	q -= 1


for _ in range(int(input())):
	x = input()
	if '0' in x and len([i for i in x if int(i) % 2 == 0]) > 1 and (sum(map(int, x.split())) % 3 == 0):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	a = list(map(int, list(input())))
	if 0 not in a:
		print('cyan')
	else:
		a.remove(0)
		if sum(a) % 3 == 0 and any((j % 2 == 0 for j in a)):
			print('red')
		else:
			print('cyan')


import sys
input = sys.stdin.readline
Q = int(input())
Query = [input().rstrip() for _ in range(Q)]
for S in Query:
	zeros = 0
	even = 0
	t = 0
	for s in S:
		n = int(s)
		if n % 2 == 0:
			even += 1
		if n == 0:
			zeros += 1
		t += n
	if zeros > 0 and t % 3 == 0 and (even > 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	a = input()
	(summa, count) = (0, 0)
	for i in a:
		summa += int(i)
		if int(i) % 2 == 0:
			count += 1
	if count > 1 and a.count('0') > 0 and (summa % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	t = input()
	l = ['0', '2', '4', '6', '8']
	c = 0
	for x in t:
		if x in l:
			c = c + 1
	if int(t) % 3 == 0:
		if c > 1 and t.count('0') >= 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


from itertools import permutations
for _ in range(int(input())):
	a = input()
	a = [int(a[i]) for i in range(len(a))]
	if sum(a) % 3 != 0:
		f = 0
	else:
		e = 0
		z = 0
		for i in range(len(a)):
			if a[i] % 2 == 0:
				e += 1
			if a[i] == 0:
				z += 1
		if e >= 2 and z >= 1:
			f = 1
		else:
			f = 0
	if f == 1:
		print('red')
	else:
		print('cyan')


import itertools
import math
import sys
import heapq
from collections import Counter
from collections import deque
from fractions import gcd
INF = 1 << 60
sys.setrecursionlimit(10 ** 6)

def by_3(y):
	if sum(y) % 3 == 0:
		return True
	return False

def by_20(y):
	cnt = 0
	for i in y:
		if i % 2 == 0:
			cnt += 1
		if cnt == 2:
			break
	if cnt == 2 and 0 in y:
		return True
	return False
n = int(input())
for i in range(n):
	y = [int(j) for j in input()]
	if by_3(y) and by_20(y):
		print('red')
	else:
		print('cyan')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, copy, functools
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
mod2 = 998244353
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return list(map(int, sys.stdin.readline().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().split()]

def LS():
	return sys.stdin.readline().split()

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def S():
	return input()

def pf(s):
	return print(s, flush=True)

def pe(s):
	return print(str(s), file=sys.stderr)

def JA(a, sep):
	return sep.join(map(str, a))

def JAA(a, s, t):
	return s.join((t.join(map(str, b)) for b in a))

def IF(c, t, f):
	return t if c else f

def YES(c):
	return IF(c, 'YES', 'NO')

def Yes(c):
	return IF(c, 'Yes', 'No')

def main():
	t = I()
	rr = []
	for _ in range(t):
		s = S()
		s = [int(c) for c in s]
		t = set(s)
		tc = collections.Counter(s)
		ok = 0 in t and sum(s) % 3 == 0 and (len(t) == 1 or any((c > 0 and c % 2 == 0 for c in t)) or tc[0] > 1)
		rr.append(IF(ok, 'red', 'cyan'))
	return JA(rr, '\n')
print(main())


for t in range(int(input())):
	s = input()
	if '0' in s and sum((int(x) for x in s)) % 3 == 0 and (any((str(x) in s for x in [2, 4, 6, 8])) or s.count('0') > 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	sum = 0
	x = 0
	c0 = 0
	ce = 0
	for i in n:
		x = int(i)
		sum += int(i)
		if x == 0:
			c0 += 1
			ce += 1
		if x == 2 or x == 4 or x == 6 or (x == 8):
			ce += 1
	if sum % 3:
		print('cyan')
	elif c0 >= 1 and ce >= 2:
		print('red')
	else:
		print('cyan')


def split(word):
	return [char for char in word]
for _ in [0] * int(input()):
	n = list(map(int, split(input())))
	if not 0 in n:
		print('cyan')
	else:
		s = 0
		flag = False
		flag2 = False
		for g in n:
			if g % 2 == 0 and (not g == 0):
				flag = True
			elif not g == 0:
				flag2 = True
			s += g
		print('red' if s % 3 == 0 and ((flag or n.count(0) > 1) or not flag2) else 'cyan')


t = int(input())
while t > 0:
	w = input()
	z = 0
	e = 0
	sum = 0
	for i in w:
		if int(i) == 0 and z == 0:
			z += 1
		if int(i) % 2 == 0 and e < 2:
			e += 1
		sum += int(i)
	if z == 1 and e == 2 and (sum % 3 == 0):
		print('red')
	else:
		print('cyan')
	t -= 1


for _ in [0] * int(input()):
	given = input()
	(zero, even, sums) = (0, 0, 0)
	for i in given:
		i = int(i)
		zero += i == 0
		even += i % 2 == 0
		sums += i
	if zero > 0 and even > 1 and (sums % 3 == 0):
		print('red')
	else:
		print('cyan')


import math
t = int(input())
for _ in range(t):
	a = input()
	l = 0
	p = 0
	q = 0
	for i in a:
		l += int(i)
		if i == '0':
			p += 1
		if int(i) % 2 == 0:
			q += 1
	l = l % 3
	if l == 0 and p > 0:
		if p == 1:
			if q == 1:
				print('cyan')
			else:
				print('red')
		else:
			print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	cnt = [0] * 10
	s = input()
	for c in s:
		i = ord(c) - ord('0')
		cnt[i] += 1
	has_even = cnt[0] > 1 or cnt[2] != 0 or cnt[4] != 0 or (cnt[8] != 0) or (cnt[6] != 0)
	if cnt[0] == 0:
		print('cyan')
		continue
	if not has_even:
		print('cyan')
		continue
	total = 0
	for i in range(10):
		total += cnt[i] * i
	if total % 3 == 0:
		print('red')
	else:
		print('cyan')


a = int(input())
for i in range(a):
	n = list(input())
	count_0 = 0
	count_2 = 0
	sum_1 = 0
	for k in range(len(n)):
		if n[k] == '0':
			count_0 += 1
		elif int(n[k]) % 2 == 0:
			count_2 += 1
		sum_1 += int(n[k])
	if sum_1 == 0:
		print('red')
	elif sum_1 % 3 == 0 and count_0 > 0 and (count_2 > 0) or (sum_1 % 3 == 0 and count_0 > 1 and (count_2 == 0)):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	sim = 0
	for f in s:
		sim += int(f)
	m = 0
	l = 0
	if sim % 3 == 0:
		for f in s:
			if f == '0':
				m += 1
			if int(f) % 2 == 0:
				l += 1
		if l >= 2 and m != 0:
			print('red')
		elif l == 0 and m == len(s):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


def checkAnswer(arr):
	c1 = False
	c2 = False
	c3 = False
	zeros = 0
	Sum = 0
	for i in range(len(arr)):
		Sum = Sum + int(arr[i])
		if int(arr[i]) == 0:
			c1 = True
			zeros = zeros + 1
		if int(arr[i]) % 2 == 0 and int(arr[i]) != 0:
			c2 = True
	if Sum % 3 == 0:
		c3 = True
	if c1 and c2 and c3:
		return True
	if c3 and zeros >= 2:
		return True
	else:
		return False

def main():
	t = int(input())
	while t:
		num = str(input())
		if checkAnswer(num):
			print('red')
		else:
			print('cyan')
		t = t - 1
main()


t = int(input())
for _ in range(t):
	n = input()
	s = 0
	f = 0
	g = 0
	for i in n:
		if int(i) % 2 == 0:
			f = f + 1
		if i == '0':
			g = g + 1
		s = s + int(i)
	if s % 3 == 0 and f > 0 and (g > 0):
		if f == 1 and g == 1:
			print('cyan')
		else:
			print('red')
	else:
		print('cyan')


N = int(input())
for x in range(N):
	a = input()
	s = 0
	for i in a:
		s += int(i)
	d4 = False
	for i in range(len(a)):
		for j in range(len(a)):
			if i == j:
				continue
			if (int(a[i]) * 10 + int(a[j])) % 20 == 0:
				d4 = True
	if s % 3 == 0 and d4:
		print('red')
	else:
		print('cyan')


t = int(input())
while t:
	t -= 1
	c = input()
	s = 0
	for i in range(len(c)):
		s += int(c[i])
	flag = 0
	for i in range(len(c)):
		if int(int(c[i]) % 2) == 0 and c[i] != '0':
			flag = 1
	if int(s % 3) == 0 and (c.count('0') == 1 and flag == 1 or c.count('0') > 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = list(input())
	zer = False
	chet = False
	sum_thr = 0
	for el in s:
		if el == '0':
			if zer:
				chet = True
			else:
				zer = True
		elif int(el) % 2 == 0:
			chet = True
		sum_thr += int(el)
	if zer and chet and (sum_thr % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	k = str(input())
	flag1 = 0
	flag2 = 0
	c = k.count('0')
	if c > 0:
		flag1 = 1
		if c > 1:
			flag2 = 1
	k = int(k)
	temp = k
	lists = []
	sums = 0
	while temp != 0:
		rem = temp % 10
		sums += rem
		lists += [rem]
		temp = temp // 10
		if rem % 2 == 0 and rem != 0:
			flag2 = 1
	if sums % 3 == 0 and flag1 and flag2:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	k = input()
	cou = k.count('0')
	ans = 0
	even = 0
	for i in range(len(k)):
		ans = ans + int(k[i])
		if int(k[i]) % 2 == 0 and int(k[i]) != 0:
			even = 1
	if ans % 3 == 0 and cou >= 1 and (even == 1):
		print('red')
	elif ans % 3 == 0 and even == 0 and (cou >= 2):
		print('red')
	else:
		print('cyan')


import sys
import math
import bisect
from sys import stdin, stdout
from math import gcd, floor, sqrt, log
from collections import defaultdict as dd
from bisect import bisect_left as bl, bisect_right as br
from collections import Counter
inp = lambda : int(input())
strng = lambda : input().strip()
jn = lambda x, l: x.join(map(str, l))
strl = lambda : list(input().strip())
mul = lambda : map(int, input().strip().split())
mulf = lambda : map(float, input().strip().split())
seq = lambda : list(map(int, input().strip().split()))
ceil = lambda x: int(x) if x == int(x) else int(x) + 1
ceildiv = lambda x, d: x // d if x % d == 0 else x // d + 1
flush = lambda : stdout.flush()
stdstr = lambda : stdin.readline()
stdint = lambda : int(stdin.readline())
stdpr = lambda x: stdout.write(str(x))
stdarr = lambda : map(int, stdstr().split())
mod = 1000000007
n = stdint()
for _ in range(n):
	x = input()
	s = 0
	zero = False
	even = 0
	for i in str(x):
		if int(i) == 0:
			zero = True
		if int(i) % 2 == 0:
			even += 1
		s += int(i)
	if zero and even >= 2:
		if s % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	a = input()
	s = 0
	b = 0
	for elm in a:
		s += int(elm)
	if a.count('0') > 1:
		b = 1
	else:
		for elm in a:
			if int(elm) % 2 == 0 and elm != '0':
				b = 1
	if a.count('0') and s % 3 == 0 and b:
		print('red')
	else:
		print('cyan')


from sys import stdin
from sys import stdout
for i in range(int(input())):
	s = input()
	a = [0] * 10
	for i in s:
		a[int(i)] += 1
	if '0' not in s:
		print('cyan')
	else:
		a[0] -= 1
		ans = ''
		for j in range(10):
			if j % 2 == 0:
				ans = str(j) * a[j] + ans
				a[j] = 0
		for j in range(10):
			ans = str(j) * a[j] + ans
			a[j] = 0
		if int(ans) % 6 == 0:
			print('red')
		else:
			print('cyan')


def checkeve(ts):
	ss = ts.copy()
	ss.remove(0)
	ss = set(ss)
	for s in ss:
		if s % 2 == 0:
			return True
	return False
inp = input
for _ in range(int(inp().strip())):
	ss = map(int, list(inp().strip()))
	ss = list(ss)
	if len(ss) == ss.count(0):
		print('red')
		continue
	if len(ss) < 2:
		print('cyan')
		continue
	sm = sum(ss)
	if sm % 3 == 0 and ss.count(0) > 0 and checkeve(ss):
		print('red')
	else:
		print('cyan')


from sys import stdin
n = int(stdin.readline().strip())
for i in range(n):
	s = stdin.readline().strip()
	acum = 0
	for j in s:
		acum += int(j)
	zero = s.count('0')
	dos = s.count('2')
	seis = s.count('6')
	cuatro = s.count('4')
	ocho = s.count('8')
	if acum % 3 == 0 and (zero >= 2 or (zero == 1 and (dos >= 1 or seis >= 1 or cuatro >= 1 or (ocho >= 1)))):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = input()
	summ = 0
	for j in s:
		summ += int(j)
	ant = 0
	zero = False
	for k in s:
		if int(k) % 2 == 0:
			ant += 1
		if k == '0':
			zero = True
	if ant > 1 and zero and (summ % 3 == 0):
		print('red')
	else:
		print('cyan')


from math import gcd, ceil
from collections import defaultdict as dd

def lcm(a, b):
	return a * b // gcd(a, b)

def inin():
	return int(input())

def inar():
	return list(map(int, input().split()))

def ar(element, size):
	return [element for i in range(size)]

def digitsum(num):
	su = 0
	while num:
		su += num % 10
		num //= 10
	return su

def pred(n, k, pointer):
	return pointer - k >= n

def yes():
	print('YES')

def no():
	print('NO')
Testcase = inin()
for n in range(Testcase):
	s = input()
	db30 = False
	db2 = False
	cnt0 = 0
	su = 0
	for i in s:
		l = int(i)
		if l % 2 == 0 and l != 0:
			db2 = True
		su += l
		if l == 0:
			cnt0 += 1
	if su % 3 == 0 and cnt0 > 0:
		db30 = True
	if cnt0 > 1:
		db2 = True
	if db30 and db2:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	x = input()
	if '0' not in x:
		print('cyan')
	else:
		xx = 0
		ff = [0] * 10
		for i in range(len(x)):
			xx += int(x[i])
			ff[int(x[i])] += 1
		if xx % 3 == 0 and (ff[0] - 1 > 0 or ff[2] > 0 or ff[4] > 0 or (ff[6] > 0) or (ff[8] > 0)):
			print('red')
		else:
			print('cyan')


n = int(input())
c = ['0', '2', '4', '6', '8']
for i in range(n):
	s = input()
	ct = 0
	for j in s:
		ct += int(j)
	if '0' in s and ct % 3 == 0:
		t = list(s)
		t.remove('0')
		if any((x in t for x in c)):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	l = list(s)
	r = []
	ch = 0
	z = False
	for elem in l:
		if int(elem) == 0:
			z = True
		if int(elem) % 2 == 0:
			ch += 1
		r.append(int(elem))
	ok = True
	if sum(r) % 3 != 0:
		ok = False
	if ch > 1 and ok and z:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	t = input()
	c = 0
	summ = 0
	e = 0
	for j in t:
		if j == '0':
			c += 1
		if int(j) % 2 == 0:
			e += 1
		summ += int(j)
	if summ % 3 == 0 and c >= 1 and (e >= 2):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	a = list(map(int, list(input())))
	f = 0
	e = 0
	s = 0
	for j in range(len(a)):
		if a[j] == 0:
			f = 1
		if a[j] % 2 == 0:
			e += 1
		s += a[j]
	if f == 1 and s % 3 == 0 and (e > 1):
		print('red')
	else:
		print('cyan')


for test in range(int(input())):
	s = input()
	sum = 0
	nze = 0
	nev = 0
	for i in s:
		k = int(i)
		sum += k
		if k == 0:
			nze += 1
		elif k % 2 == 0:
			nev += 1
	if nze == 0:
		print('cyan')
	elif sum % 3 != 0:
		print('cyan')
	elif nze < 2 and nev == 0:
		print('cyan')
	else:
		print('red')


for _ in range(int(input())):
	n = input()
	if set(n) == {'0'}:
		print('red')
		continue
	if '0' in n:
		c = 0
		eve = 0
		for i in n:
			c += int(i)
			if int(i) % 2 == 0 and int(i) != 0:
				eve += 1
		if c % 3 == 0 and eve > 0 or (c % 3 == 0 and n.count('0') > 1):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


import sys
input = sys.stdin.readline
from collections import Counter
n = int(input())
Y = [input().strip() for i in range(n)]
for y in Y:
	C = Counter(y)
	if C['0'] == 0:
		print('cyan')
		continue
	K = 0
	for d in y:
		K += int(d)
	if K % 3 != 0:
		print('cyan')
		continue
	if C['0'] == 1 and C['2'] == C['4'] == C['6'] == C['8'] == 0:
		print('cyan')
		continue
	print('red')


import sys

def input():
	return sys.stdin.readline().strip()

def list2d(a, b, c):
	return [[c] * b for i in range(a)]

def list3d(a, b, c, d):
	return [[[d] * c for j in range(b)] for i in range(a)]

def list4d(a, b, c, d, e):
	return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]

def ceil(x, y=1):
	return int(-(-x // y))

def INT():
	return int(input())

def MAP():
	return map(int, input().split())

def LIST(N=None):
	return list(MAP()) if N is None else [INT() for i in range(N)]

def Yes():
	print('Yes')

def No():
	print('No')

def YES():
	print('YES')

def NO():
	print('NO')
sys.setrecursionlimit(10 ** 9)
INF = 10 ** 18
MOD = 10 ** 9 + 7

def check1(a):
	sm = 0
	for d in a:
		sm += int(d)
	return sm % 3 == 0

def check2(a):
	return a.count('0')

def check3(a):
	sm = 0
	for d in ['0', '2', '4', '6', '8']:
		sm += a.count(d)
	return sm >= 2
for _ in range(INT()):
	a = input()
	if check1(a) and check2(a) and check3(a):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	x = list(input())
	for i in range(len(x)):
		x[i] = int(x[i])
	x.sort()
	s = sum(x)
	zeros = 0
	even = 0
	if s % 3 != 0:
		print('cyan')
	else:
		for i in range(len(x)):
			if x[i] == 0:
				zeros += 1
			elif x[i] % 2 == 0:
				even += 1
		if zeros >= 2:
			print('red')
		elif zeros >= 1 and even >= 1:
			print('red')
		else:
			print('cyan')


from sys import stdin, stdout

def div60(numero):
	intn = int(numero)
	if intn == 0:
		return 'red' + '\n'
	if intn % 3 != 0:
		return 'cyan' + '\n'
	cero = numero.find('0')
	if cero == -1:
		return 'cyan' + '\n'
	par = False
	pos = 0
	for digito in numero:
		if pos == cero:
			pos += 1
			continue
		if int(digito) % 2 == 0:
			par = True
			break
		pos += 1
	if par:
		return 'red' + '\n'
	return 'cyan' + '\n'

def main():
	resp = ''
	numeros = int(stdin.readline())
	for i in range(numeros):
		linea = stdin.readline()
		resp += div60(linea.strip()) + '\n'
	stdout.write(resp)
main()


for t in range(int(input())):
	l = [int(x) for x in input()]
	flag = 0
	zeroflag = 0
	s = 0
	for i in l:
		if i == 0 and zeroflag == 0:
			zeroflag = 1
			continue
		if i % 2 == 0:
			flag = 1
		s += i
	if s % 3 == 0 and flag == 1 and (zeroflag == 1):
		print('red')
	else:
		print('cyan')


def sum_digits(digit):
	return sum((int(x) for x in digit if x.isdigit()))
a = int(input())
l = []
for i in range(0, a):
	l.append(input())
for i in range(0, len(l)):
	if '0' in l[i] and sum_digits(l[i]) % 3 == 0:
		if l[i].count('0') > 1 or '2' in l[i] or '4' in l[i] or ('6' in l[i]) or ('8' in l[i]):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	if s.count('0') == 0:
		print('cyan')
		continue
	flag = 0
	for x in ['2', '4', '6', '8']:
		if x in s:
			flag = 1
			break
	if flag == 0 and s.count('0') >= 2:
		flag = 1
	if flag == 0:
		print('cyan')
		continue
	su = 0
	for x in s:
		su += int(x)
	if su % 3 == 0:
		print('red')
	else:
		print('cyan')


import sys
import math
from collections import defaultdict, Counter
import os
import sys
from io import BytesIO, IOBase
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
for i in range(1):
	n = int(input())
	for j in range(n):
		y = input()
		cur = 0
		d = {}
		eve = 0
		for k in y:
			cur += int(k)
			d[k] = 1
			if int(k) % 2 == 0:
				eve += 1
		if d.get('0') == None or cur % 3 != 0 or eve - 1 == 0:
			print('cyan')
		else:
			print('red')


for _ in range(int(input())):
	x = input()
	if int(x) == 0:
		print('red')
	elif '0' in x:
		sum = 0
		count = 0
		div2 = 0
		for ele in x:
			if ele == '0':
				count += 1
			if int(ele) % 2 == 0:
				div2 += 1
			sum += int(ele)
		if sum % 3 == 0:
			if count >= 2 and div2 > 0:
				print('red')
			elif count == 1:
				if div2 > 1:
					print('red')
				else:
					print('cyan')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
result = []
for _ in range(n):
	num = list(map(int, list(input())))
	zeros = num.count(0)
	if zeros == len(num):
		result.append('red')
		continue
	if 0 in num:
		summ = 0
		flag = False
		if zeros > 1:
			flag = True
		for i in num:
			summ += i
			if i != 0 and i % 2 == 0:
				flag = True
		if flag:
			if sum(num) % 3 == 0:
				result.append('red')
			else:
				result.append('cyan')
		else:
			result.append('cyan')
	else:
		result.append('cyan')
for i in range(n):
	print(result[i])


import sys
readline = sys.stdin.readline

def check(A):
	if all((a != 0 for a in A)):
		return 'cyan'
	A.remove(0)
	if all((a & 1 for a in A)):
		return 'cyan'
	if sum(A) % 3 == 0:
		return 'red'
	return 'cyan'
T = int(readline())
Ans = [None] * T
for qu in range(T):
	s = list(map(int, readline().strip()))
	Ans[qu] = check(s)
print('\n'.join(Ans))


p = 0

def getSum(n):
	global p
	sum1 = 0
	p = 0
	for ch in n:
		sum1 = sum1 + int(ch)
		if int(ch) % 2 == 0:
			p = p + 1
	return sum1
tes = int(input())
while tes:
	tes = tes - 1
	n = input()
	z = n.count('0')
	if getSum(n) == 0:
		print('red')
	elif getSum(n) % 3 == 0 and p > 1 and (z > 0):
		print('red')
	else:
		print('cyan')


T = int(input())
for _ in range(T):
	x = list(input())
	y = [int(i) for i in x]
	if sum(y) % 3 == 0 and 0 in y and (y.count(0) + y.count(2) + y.count(4) + y.count(6) + y.count(8) >= 2):
		print('red')
	else:
		print('cyan')


import sys
input = sys.stdin.readline
n = int(input())
for i in range(n):
	a = input().rstrip()
	if '0' not in a:
		print('cyan')
		continue
	cnt = 0
	val = 0
	for item in a:
		if int(item) % 2 == 0:
			cnt += 1
		val += int(item)
	if cnt <= 1:
		print('cyan')
		continue
	if val % 3 == 0:
		print('red')
	else:
		print('cyan')


line = input()
for i in range(int(line)):
	n = input()
	sum = 0
	c = 0
	ar = []
	for j in range(len(n)):
		ar.append(n[j])
		sum += int(n[j])
		if n[j] == '0':
			c += 1
	if c == len(n):
		print('red')
	elif sum % 3 != 0 or c == 0:
		print('cyan')
	elif c == 1:
		if '2' in ar or '4' in ar or '6' in ar or ('8' in ar):
			print('red')
		else:
			print('cyan')
	else:
		print('red')


for n in range(int(input())):
	n = input()
	s = sum([int(x) for x in n])
	if (any((i in n for i in '2468')) or n.count('0') > 1) and (not s % 3) and (n.count('0') > 0):
		print('red')
	else:
		print('cyan')


def div60(s):
	digitSum = even = zeros = 0
	for ch in s:
		ch = int(ch)
		digitSum += ch
		if ch == 0:
			zeros += 1
		if ch % 2 == 0:
			even += 1
	if even > 1 and zeros >= 1 and (digitSum % 3 == 0):
		return 'red'
	return 'cyan'
n = int(input())
for _ in range(n):
	ans = div60(input())
	print(ans)


n = int(input())
for _ in range(n):
	a = list(input())
	flag1 = False
	summ = sum(map(int, a))
	zerocount = 0
	for c in a:
		if int(c) % 2 == 0 and int(c) != 0:
			flag1 = True
		if c == '0':
			zerocount += 1
	if zerocount > 1:
		flag1 = True
	if summ % 3 == 0 and '0' in a and flag1:
		print('red')
	else:
		print('cyan')


from sys import stdin
b = int(stdin.readline().strip())
for i in range(b):
	a = stdin.readline().strip()
	w = [int(x) for x in a]
	p = 0
	n = 0
	for i in w:
		if i == 0:
			n += 1
		if i % 2 == 0:
			p += 1
	s = sum(w)
	if s % 3 == 0 and n > 0 and (p > 1):
		print('red')
	else:
		print('cyan')


def sum_sum(s):
	cnt = 0
	for i in s:
		cnt += int(i)
	return cnt

def no_odd(s):
	res = 0
	for i in s:
		if int(i) % 2 == 0:
			res += 1
		if res > 1:
			return True
	return False
n = int(input())
k = ''
arr = []
for i in range(0, n):
	k = str(input())
	arr.append(k)
for i in range(0, len(arr)):
	if arr[i].count('0') == len(arr[i]) or ((sum_sum(arr[i]) % 3 == 0 or sum_sum(arr[i]) == 0) and '0' in arr[i] and no_odd(arr[i])):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	y = input()
	s = list(y)
	if '0' in s:
		s.remove('0')
		l = []
		s = list(map(int, s))
		for i in s:
			if i % 2 == 0:
				l.append(1)
				break
		if sum(s) % 3 == 0 and l:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	a = input()
	if '0' not in a:
		print('cyan')
	elif int(a) % 3 != 0:
		print('cyan')
	else:
		i = a.index('0')
		a = a[:i] + a[i + 1:]
		l = 'cyan'
		for i in range(len(a)):
			if int(a[i]) % 2 == 0:
				l = 'red'
				break
		print(l)


def div(a):
	sum1 = 0
	for i in a:
		sum1 += int(i)
	if sum1 % 3 == 0:
		return 1
	else:
		return 0
for t in range(int(input())):
	inp = input()
	li = list(str(inp))
	if '0' in li:
		for i in range(len(li) - 1):
			if li[i] == '0':
				li.pop(i)
				break
		flag = 0
		for i in li:
			if int(i) % 2 == 0:
				if div(li):
					flag = 1
		if flag == 0:
			print('cyan')
		else:
			print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	l = list(str(input()))
	flag = 0
	if l.count('0') >= 1:
		l.remove('0')
		if l.count('0') >= 1 or l.count('2') >= 1 or l.count('4') >= 1 or (l.count('6') >= 1) or (l.count('8') >= 1):
			sum = 0
			for i in l:
				sum = sum + int(i)
			if sum % 3 == 0:
				print('red')
				flag = 1
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


from collections import defaultdict as dd
from collections import deque
import bisect
import heapq

def ri():
	return int(input())

def rl():
	return list(map(int, input().split()))

def solve():
	y = input()
	digits = dd(int)
	zeros = 0
	evens = 0
	digit_sum = 0
	for d in y:
		x = int(d)
		if x % 2 == 0:
			evens += 1
		if x == 0:
			zeros += 1
		digit_sum = (digit_sum + x) % 3
	if zeros > 0 and evens > 1 and (digit_sum == 0):
		print('red')
	else:
		print('cyan')
mode = 'T'
if mode == 'T':
	t = ri()
	for i in range(t):
		solve()
else:
	solve()


n = int(input())
for i in range(n):
	t = input()
	s = sum((int(i) for i in t))
	flag = False
	if s % 3 == 0:
		if t.count('0') >= 2:
			flag = True
		else:
			for ending in ['20', '40', '60', '80']:
				c = t.count(ending[0])
				c1 = t.count(ending[1])
				if c >= 1 and c1 >= 1:
					flag = True
					break
	if flag:
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	s = list(str(input()))
	if '0' not in s:
		print('cyan')
	else:
		s.remove('0')
		iseven = False
		summ = 0
		for i in s:
			summ += int(i)
			if int(i) % 2 == 0:
				iseven = True
		if iseven and summ % 3 == 0:
			print('red')
		else:
			print('cyan')


n = int(input())
y = []
for i in range(n):
	y.append(input())
for yi in y:
	s = 0
	even = False
	zero = False
	for char in yi:
		digit = int(char)
		if digit == 0 and (not zero):
			zero = True
		elif digit % 2 == 0:
			even = True
		s += digit
	if s % 3 == 0 and even and zero:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(0, n):
	arr = sorted([int(char) for char in input()])
	if 0 in arr:
		arr = arr[1:]
		if sum(arr) % 3 == 0:
			if any(map(lambda x: x % 2 == 0, arr)):
				print('red')
				continue
	print('cyan')


t = int(input())
for _ in range(0, t):
	s = [int(i) for i in input()]
	ev = 0
	for i in s:
		if i % 2 == 0:
			ev += 1
	if 0 in s and sum(s) % 3 == 0 and (ev > 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	num = input()
	summ = 0
	zero = 0
	two = 0
	for i in range(len(num)):
		summ += int(num[i])
		if int(num[i]) % 2 == 0:
			two += 1
		if int(num[i]) == 0:
			zero += 1
	if summ % 3 != 0 or zero == 0:
		print('cyan')
	elif two - 1 <= 0:
		print('cyan')
	else:
		print('red')


n = int(input())
for j in range(n):
	dig = [int(x) for x in input()]
	l = len(dig)
	sum = 0
	b = False
	c = False
	for i in dig:
		if not b and i == 0:
			b = True
		elif not c and i % 2 == 0:
			c = True
		sum += i
	if b and c and (sum % 3 == 0):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	l1 = [int(x) for x in list(input())]
	evens = 0
	for x in [2, 4, 6, 8]:
		if x and x in l1:
			evens = 1
			break
	if l1.count(0) > 1:
		evens = 1
	if sum(l1) % 3 == 0 and evens and (0 in l1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = input()
	ss = 0
	f = 0
	f1 = 0
	for i in s:
		t = int(i)
		if t % 2 == 0:
			f = 1
		if t == 0:
			f1 = 1
		ss += t
	f3 = 0
	for i in range(len(s)):
		for j in range(i + 1, len(s)):
			if int(s[i] + s[j]) % 4 == 0 or int(s[j] + s[i]) % 4 == 0:
				f3 = 1
				break
		if f3:
			break
	if f == 1 and f1 == 1 and (ss % 3 == 0) and f3:
		print('red')
	else:
		print('cyan')


n = int(input())
while n > 0:
	n -= 1
	s = input()
	usu = 0
	t0 = t1 = 0
	for i in s:
		usu += int(i)
		if int(i) == 0:
			t0 += 1
		elif int(i) % 2 == 0:
			t1 += 1
	if usu % 3 == 0 and (t0 >= 2 or (t1 >= 1 and t0 >= 1)):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	y = list(input())
	flag = 0
	if '0' in y:
		y.remove('0')
		s = sum((int(x) for x in y))
		if s % 3 == 0:
			for i in y:
				if int(i) % 2 == 0:
					flag = 1
					break
	if flag == 1:
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	n = list(input())
	zero = 0
	even = 0
	ok = False
	for i in range(len(n)):
		if (ord(n[i]) - ord('0')) % 2 == 0 and n[i] != '0':
			even += 1
		if n[i] == '0':
			zero += 1
		if zero > 1 or (even > 0 and zero > 0):
			ok = True
			break
	sum_ = 0
	for i in range(len(n)):
		sum_ += ord(n[i]) - ord('0')
	if sum_ % 3 == 0 and ok:
		print('red')
	else:
		print('cyan')


def divisible6(s):
	evens = total = zeroes = 0
	for x in s:
		y = int(x)
		total = total + y
		if y == 0:
			zeroes += 1
			evens += 1
		elif y % 2 == 0:
			evens += 1
	if zeroes and evens >= 2 and (total % 3 == 0):
		return 'red'
	else:
		return 'cyan'

def solution(t):
	for i in range(t):
		s = input()
		print(divisible6(s))

def main():
	t = int(input())
	solution(t)
main()


for _ in [0] * int(input()):
	y = input()
	print('cryeadn'[int(y) % 3 < 1 and (not {*y} & {*'2468'}) < y.count('0')::2])


n = int(input())
for i in range(n):
	s = list(input())
	s = [int(i) for i in s]
	try:
		s.remove(0)
		x = sum(s)
		if x % 3 == 0:
			if len([i for i in s if i % 2 == 0]) > 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	except:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	if '0' not in s:
		print('cyan')
	else:
		ss = 0
		flag = False
		flag_was_zero = False
		for i in s:
			ss += int(i)
			if int(i) % 2 == 0:
				if i == '0':
					if flag_was_zero:
						flag = True
					else:
						flag_was_zero = True
				else:
					flag = True
		if ss % 3 == 0 and flag:
			print('red')
		else:
			print('cyan')


from sys import stdin

def main():
	input = lambda : stdin.readline()[:-1]
	N = int(input())
	Y = [input() for _ in [0] * N]
	for y in Y:
		if sum(map(int, list(y))) % 3:
			print('cyan')
			continue
		if y.count('0') > 1 or ('0' in y and any(('2' in y, '4' in y, '6' in y, '8' in y))):
			print('red')
		else:
			print('cyan')
main()


t = int(input())
for h in range(0, t):
	a = str(input())
	a1 = list(a)
	b = []
	k = 0
	for i in range(0, len(a)):
		b.append(int(a1[i]))
	for j in range(0, len(a)):
		if b[j] % 2 == 0 and b[j] != 0:
			k = k + 1
		if k >= 1:
			break
	if b.count(0) >= 1 and sum(b) % 3 == 0 and (k >= 1):
		print('red')
	elif b.count(0) == len(a):
		print('red')
	elif b.count(0) >= 2 and sum(b) % 3 == 0:
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	s = input()
	ch = 0
	suma = 0
	zero = 0
	for i in range(len(s)):
		if int(s[i]) % 2 == 0:
			if s[i] == '0':
				zero += 1
			ch += 1
		suma += int(s[i])
	if suma % 3 == 0 and ch > 1 and (zero != 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = input()
	se = su = z = 0
	for j in s:
		i = int(j)
		if i % 2 == 0:
			se += 1
		if i == 0:
			z += 1
		su += i
	if su == 0:
		print('red')
	elif se >= 2 and su % 3 == 0 and (z >= 1):
		print('red')
	else:
		print('cyan')


import os, sys
from io import BytesIO, IOBase

def ii():
	return int(input())

def si():
	return input()

def mi():
	return map(int, input().split())

def li():
	return list(mi())
import math
for i in range(ii()):
	n = si()
	s = 0
	f = 0
	c = 0
	for i in n:
		i = int(i)
		if i % 2 == 0:
			f += 1
		if i == 0:
			c = 1
		s += i
	if f > 1 and c and (s % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
while n:
	n -= 1
	a = input()
	e = 0
	c0 = 0
	c5 = 0
	sm = 0
	for i in a:
		sm += int(i)
		if i == '0':
			c0 += 1
			e += 1
		elif i == '5':
			c5 += 1
		elif int(i) % 2 is 0:
			e += 1
	if sm % 3 == 0:
		if c0 > 0 and e > 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


def three(summ):
	while len(str(summ)) != 1:
		summ = list(str(summ))
		a = [int(x) for x in summ]
		summ = str(sum(a))
	if summ == '0' or summ == '3' or summ == '6' or (summ == '9'):
		return True
	return False
for k in range(int(input())):
	a = input()
	ar = [int(x) for x in a]
	ten = 0 in ar
	if ten:
		ar.remove(0)
	temp = [1 if k % 2 == 0 else 0 for k in ar]
	two = sum(temp) != 0
	ar = [str(x) for x in ar]
	thre = three(''.join(ar))
	ar = [int(x) for x in ar]
	if two and thre and ten or sum(ar) == 0:
		print('red')
	else:
		print('cyan')


cases = int(input())
for _ in range(cases):
	num = input()
	div10 = False
	div3 = 0
	div2 = False
	for i in num:
		if i == '0':
			if div10:
				div2 = True
		if i == '0':
			div10 = True
		else:
			div3 += int(i)
			if i == '2' or i == '4' or i == '6' or (i == '8'):
				div2 = True
	if div10 and div2 and (div3 % 3 == 0):
		print('red')
	else:
		print('cyan')


import sys, itertools
tc = int(sys.stdin.readline())
for _ in range(tc):
	n = list(sys.stdin.readline().rstrip())
	four = False
	three = False
	five = False
	for i in range(len(n)):
		if four and five:
			break
		for j in range(len(n)):
			if i == j:
				continue
			if (10 * int(n[i]) + int(n[j])) % 4 == 0 and int(n[j]) % 5 == 0:
				four = True
				five = True
				break
	sigma = 0
	for i in n:
		sigma += int(i)
	if sigma % 3 == 0:
		three = True
	if four and five and three:
		print('red')
	else:
		print('cyan')


from sys import stdin
n = int(stdin.readline())
for i in range(n):
	number = stdin.readline()
	digits = []
	for digit in number:
		if digit != '\n':
			digits.append(int(digit))
	even = 0
	for i in digits:
		if i % 2 == 0:
			even += 1
	if sum(digits) % 3 == 0 and digits.count(0) >= 1 and (even >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for k in range(n):
	i = input()
	y = int(i)
	if y % 60 == 0:
		print('red')
		continue
	if i.find('0') == -1:
		print('cyan')
		continue
	d = [int(x) for x in i]
	if sum(d) % 3 == 0:
		if d.count(0) > 0:
			if d.count(0) > 1 or d.count(2) > 0 or d.count(4) > 0 or (d.count(6) > 0) or (d.count(8) > 0):
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	a = str(input())
	key = 0
	if '0' in a:
		key = 1
	s = 0
	for i in a:
		s += int(i)
	val = 0
	if a.count('0') >= 2 or '2' in a or '4' in a or ('6' in a) or ('8' in a):
		val = 1
	if s % 3 == 0 and key == 1 and (val == 1):
		print('red')
	else:
		print('cyan')


import sys
N = input()
for j in range(int(N)):
	line = input()
	l = len(line)
	rearranged = False
	if int(line) % 60 == 0:
		print('red')
	else:
		num = [int(c) for c in line]
		if sum(num) % 3 == 0:
			hasZero = False
			hasEven = False
			n = 0
			while n < l and (not rearranged):
				if num[n] == 0:
					if not hasZero:
						hasZero = True
					else:
						hasEven = True
				elif num[n] % 2 == 0:
					hasEven = True
				if hasZero and hasEven:
					print('red')
					rearranged = True
				n += 1
		if not rearranged:
			print('cyan')


from sys import *
t = int(stdin.readline())
while t > 0:
	n = input()
	zero = 0
	even = 0
	sm = 0
	for i in n:
		if int(i) == 0:
			zero += 1
		elif int(i) % 2 == 0:
			even += 1
		sm += int(i)
	if sm % 3 == 0 and zero > 0 and (even > 0):
		print('red')
	elif sm % 3 == 0 and zero > 1 and (even == 0):
		print('red')
	else:
		print('cyan')
	t -= 1


from os import path
import sys
from math import ceil, floor, gcd, log
from collections import defaultdict, Counter
maxx = float('inf')
if path.exists('input.txt'):
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')
	I = lambda : int(sys.stdin.buffer.readline())
	tup = lambda : map(int, sys.stdin.buffer.readline().split())
	lint = lambda : [int(x) for x in sys.stdin.buffer.readline().split()]
	S = lambda : sys.stdin.readline().replace('\n', '').strip()
	stpr = lambda x: sys.stdout.write(f'{x}' + '\n')
	star = lambda x: print(' '.join(map(str, x)))
else:
	I = lambda : int(sys.stdin.buffer.readline())
	tup = lambda : map(int, sys.stdin.buffer.readline().split())
	lint = lambda : [int(x) for x in sys.stdin.buffer.readline().split()]
	S = lambda : sys.stdin.readline().replace('\n', '').strip()
	stpr = lambda x: sys.stdout.write(f'{x}' + '\n')
	star = lambda x: print(' '.join(map(str, x)))
a = ['2', '4', '6', '8', '0']
for _ in range(I()):
	d = defaultdict(int)
	s = S()
	for i in s:
		d[i] += 1
	p = sum(map(lambda x: int(x), s)) % 3
	if p == 0 and d['0'] > 0:
		fn = 0
		for i in a:
			if d[i] > 0:
				fn += d[i]
		if fn >= 2:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for qwe in range(n):
	a = list(sorted(list(map(int, input()))))
	if sum(a) % 3 == 0 and a[0] == 0 and (0 in a[1:] or 2 in a[1:] or 4 in a[1:] or (6 in a[1:]) or (8 in a[1:])):
		print('red')
	else:
		print('cyan')


numG = int(input())
nums = []
for i in range(numG):
	nums += [input()]
hold = 0
for x in nums:
	zero = False
	even = False
	hold = 0
	for c in x:
		if int(c) % 2 == 0 and (zero or c != '0'):
			even = True
		if c == '0':
			zero = True
		hold += int(c)
	if hold % 3 == 0 and even and zero:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = list(map(int, list(input())))
	c = a.count(0) + a.count(2) + a.count(4) + a.count(6) + a.count(8)
	if sum(a) % 3 == 0 and a.count(0) >= 1 and (c > 1):
		print('red')
	elif a.count(0) == len(a):
		print('red')
	else:
		print('cyan')


t = int(input())
for w in range(t):
	l = list(input())
	if l.count('0') > 0:
		s = 0
		c = 0
		for i in l:
			if int(i) % 2 == 0:
				c += 1
			s += int(i)
		if s % 3 == 0 and c > 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for tin in range(int(input())):
	s = str(input())
	a = []
	for _ in range(len(s)):
		a.append(int(s[_]))
	x = sum(a)
	g = 0
	k = 0
	l = 0
	if x % 3 == 0:
		g = 1
	for _ in range(len(a)):
		if a[_] % 2 == 0 and a[_] != 0:
			k = 1
			break
	if k == 0 and a.count(0) > 1:
		k = 1
	if 0 in a:
		l = 1
	if l == 1 and k == 1 and (g == 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	s = input()
	if s.count('0') == 0:
		print('cyan')
	elif s.count('0') == len(s):
		print('red')
	elif sum([int(i) for i in s]) % 3 != 0:
		print('cyan')
	elif s.count('0') > 1:
		print('red')
	else:
		for i in s:
			if int(i) != 0 and int(i) % 2 == 0:
				print('red')
				break
		else:
			print('cyan')


from collections import defaultdict

def getlist():
	return list(map(int, input().split()))

def main():
	N = int(input())
	for i in range(N):
		x = list(map(int, list(input())))
		D = defaultdict(int)
		s = 0
		for i in x:
			D[i] += 1
			s += i
		if s % 3 != 0:
			print('cyan')
		elif D[0] == 0:
			print('cyan')
		else:
			judge = 'No'
			if D[0] >= 2:
				judge = 'Yes'
			if D[2] >= 1:
				judge = 'Yes'
			if D[4] >= 1:
				judge = 'Yes'
			if D[6] >= 1:
				judge = 'Yes'
			if D[8] >= 1:
				judge = 'Yes'
			if judge == 'No':
				print('cyan')
			else:
				print('red')
main()


for _ in range(int(input())):
	s = input()
	(count, cnt) = (0, 0)
	even = 0
	for i in s:
		if i == '0':
			cnt += 1
		else:
			if int(i) % 2 == 0:
				even = 1
			count += int(i)
	if count % 3 == 0 and cnt >= 1 and (even == 1 or cnt >= 2):
		print('red')
	elif cnt == len(s):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = str(input())
	flag = 0
	sums = 0
	count = 0
	for i in range(0, len(s)):
		if int(s[i]) % 2 == 0:
			count = count + 1
		sums = sums + int(s[i])
	if sums % 3 == 0 and s.count('0') > 0 and (count >= 2):
		pass
	else:
		flag = 1
	if flag > 0:
		print('cyan')
	else:
		print('red')


n = int(input())
while n > 0:
	n -= 1
	y = input().strip()
	c0 = 0
	c2 = 0
	s = 0
	for i in range(len(y)):
		if int(y[i]) != 0 and int(y[i]) % 2 == 0:
			c2 += 1
		s += int(y[i])
		if int(y[i]) == 0:
			c0 += 1
	if c0 > 0 and c2 > 0 and (s % 3 == 0) or (c0 > 1 and s % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	sumi = 0
	noz = 0
	even = 0
	for j in range(len(s)):
		sumi += ord(s[j]) - ord('0')
		if ord(s[j]) == ord('0'):
			noz += 1
		if (ord(s[j]) - ord('0')) % 2 == 0 and ord(s[j]) != ord('0'):
			even += 1
	if sumi % 3 == 0 and noz >= 1:
		if noz >= 2 or even >= 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for i in range(int(input())):
	p = [2, 4, 6, 8, 0]
	s = list(map(int, list(input())))
	if 0 in s:
		s.remove(0)
		k = [x for x in p if x in s]
		if sum((x for x in s)) % 3 == 0 and k:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for _ in range(int(input())):
	a = input()
	b = 0
	su = 0
	d = 0
	for i in a:
		u = int(i)
		su += u
		if u == 0 and b == 0:
			b = 1
		elif u % 2 == 0:
			d = 1
	if b == 1 and d == 1 and (su % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	t = input()
	x = int(t)
	s = 0
	f = False
	for j in str(x):
		s += int(j)
		if j != '0':
			f |= not int(j) % 2
	if t.count('0') > 1:
		f = True
	if f and s % 3 == 0 and t.count('0'):
		print('red')
	else:
		print('cyan')


for n in range(int(input())):
	hours = list(input())
	num = []
	for i in hours:
		x = int(i)
		if x % 2 == 0:
			if x == 0:
				num.append(str(x))
			else:
				j = len(num) - 1
				if j >= 0:
					while num[j] == '0':
						j -= 1
						if j < 0:
							break
				if j < 0 or j != len(num) - 1:
					if j < 0:
						num.insert(0, str(x))
					else:
						num.insert(j + 1, str(x))
				else:
					num.append(str(x))
		else:
			num.insert(0, str(x))
	num = ''.join(num)
	if int(num) % 60 == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	e = 0
	z = 0
	x = 0
	for i in s:
		if int(i) % 2 == 0:
			e += 1
		if i == '0':
			z += 1
		x += int(i)
	if z == len(s):
		print('red')
	elif z == 0 or (e == 1 and z == 1):
		print('cyan')
	elif e > 0 and x % 3 == 0:
		print('red')
	else:
		print('cyan')


t = int(input())
while t > 0:
	t -= 1
	n = input()
	n1 = 0
	n2 = 0
	n3 = 0
	for i in n:
		c = int(i)
		n3 += c
		if c % 2 == 0:
			n1 += 1
		if c == 0:
			n2 += 1
			if n2 == 1:
				n1 -= 1
	if n1 >= 1 and n2 >= 1 and (n3 % 3 == 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = [int(i) for i in input()]
	if sum(n) % 3:
		print('cyan')
	elif 0 not in n:
		print('cyan')
	else:
		x = n.index(0)
		z = 0
		for i in range(len(n)):
			if i != x and (n[i] == 2 or n[i] == 4 or n[i] == 6 or (n[i] == 8) or (n[i] == 0)):
				z = 1
				break
		print('red' if z else 'cyan')


n = int(input())
for _ in range(n):
	flag = False
	t = input()
	s = list(map(int, list(t)))
	if sum(s) % 3 == 0:
		if '0' in t:
			if '2' in t or '4' in t or '8' in t or ('6' in t) or (t.count('0') >= 2):
				print('red')
				flag = True
	if not flag:
		print('cyan')


n = int(input())
for _ in range(n):
	y = input()
	even = 0
	if sum(map(int, y)) % 3 == 0 and '0' in y:
		for c in y:
			if int(c) % 2 == 0:
				even += 1
				if even == 2:
					break
	if even == 2:
		print('red')
	else:
		print('cyan')


def get(n):
	for i in n:
		if not i & 1 and i:
			return True
	return False
for _ in range(int(input())):
	n = list(map(int, list(input())))
	c = n.count(0)
	if c and (not sum(n) % 3):
		col = ('red' if get(n) else 'cyan') if c == 1 else 'red'
	else:
		col = 'cyan'
	print(col)


for i in range(int(input())):
	y = str(input())
	add = 0
	l = list(str(y))
	g = {}
	g['0'] = 0
	g['1'] = 1
	g['2'] = 2
	g['3'] = 3
	g['4'] = 4
	g['5'] = 5
	g['6'] = 6
	g['7'] = 7
	g['8'] = 8
	g['9'] = 9
	c = 0
	for i in l:
		add += g[i]
		if i == '2' or i == '4' or i == '6' or (i == '8'):
			c = 1
	if l.count('0') == 1 and add % 3 == 0 and (c == 1):
		print('red')
	elif l.count('0') > 1 and add % 3 == 0:
		print('red')
	else:
		print('cyan')


def grandmaster(a, n):
	for x in a:
		if '0' not in x:
			print('cyan')
		else:
			t = sorted(list(map(int, list(x))))
			if 0 in t[1:] or 2 in t[1:] or 4 in t[1:] or (6 in t[1:]) or (8 in t[1:]):
				if sum(t) % 3 == 0:
					print('red')
				else:
					print('cyan')
			else:
				print('cyan')
n = int(input())
a = []
for y in range(n):
	a.append(input())
grandmaster(a, n)


for _ in range(int(input())):
	n = input()
	di = {}
	ns = 0
	for i in n:
		ns += int(i)
		di[i] = 1 if i not in di else di[i] + 1
	if '0' not in di:
		print('cyan')
	elif ('2' in di or '4' in di or '6' in di or ('8' in di) or (di['0'] >= 2)) and ns % 3 == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	b = sorted(list(map(int, list(input()))))
	u = 0
	y = 0
	for i in b:
		if i % 2 == 0 and i != 0:
			u = 1
			break
		elif i == 0:
			y += 1
	if y >= 2:
		u = 1
	if b[0] == 0 and sum(b) % 3 == 0 and (u == 1):
		print('red')
	else:
		print('cyan')


from collections import deque, Counter
import array
from itertools import combinations, permutations
from math import sqrt
import unittest

def read_int():
	return int(input().strip())

def read_int_array():
	return [int(i) for i in input().strip().split(' ')]
for test in range(read_int()):
	nStr = input().strip()
	sum_ = 0
	has_zero = False
	has_even = False
	for (i, e) in enumerate(nStr):
		sum_ += int(e)
		if not has_zero and e == '0':
			has_zero = True
		elif int(e) % 2 == 0:
			has_even = True
	print('red' if has_zero and has_even and (sum_ % 3 == 0) else 'cyan')


def even(n):
	q = False
	for i in range(len(n)):
		if n[i] % 2 == 0:
			q = True
			break
	return q
t = int(input())
while t > 0:
	t -= 1
	n = list(map(int, input()))
	ans = ''
	if sum(n) % 3 != 0:
		ans = 'cyan'
	elif 0 not in n:
		ans = 'cyan'
	else:
		n.remove(0)
		q = even(n)
		if q == True:
			ans = 'red'
		else:
			ans = 'cyan'
	print(ans)


import sys
import collections
from collections import Counter
import itertools
import math
import timeit

def sieve(n):
	if n < 2:
		return list()
	prime = [True for _ in range(n + 1)]
	p = 3
	while p * p <= n:
		if prime[p]:
			for i in range(p * 2, n + 1, p):
				prime[i] = False
		p += 2
	r = [2]
	for p in range(3, n + 1, 2):
		if prime[p]:
			r.append(p)
	return r

def divs(n, start=1):
	divisors = []
	for i in range(start, int(math.sqrt(n) + 1)):
		if n % i == 0:
			if n / i == i:
				divisors.append(i)
			else:
				divisors.extend([i, n // i])
	return divisors

def divn(n, primes):
	divs_number = 1
	for i in primes:
		if n == 1:
			return divs_number
		t = 1
		while n % i == 0:
			t += 1
			n //= i
		divs_number *= t

def flin(d, x, default=-1):
	left = right = -1
	for i in range(len(d)):
		if d[i] == x:
			if left == -1:
				left = i
			right = i
	if left == -1:
		return (default, default)
	else:
		return (left, right)

def ceil(n, k):
	return n // k + (n % k != 0)

def ii():
	return int(input())

def mi():
	return map(int, input().split())

def li():
	return list(map(int, input().split()))

def lcm(a, b):
	return abs(a * b) // math.gcd(a, b)

def prr(a, sep=' '):
	print(sep.join(map(str, a)))

def dd():
	return collections.defaultdict(int)

def ddl():
	return collections.defaultdict(list)
t = ii()
for _ in range(t):
	s = input()
	z = o = sum = 0
	for x in s:
		x = int(x)
		if x == 0:
			z += 1
		if not int(x) % 2:
			o += 1
		sum += x
	print('red') if not sum % 3 and z > 0 and (o > 1) else print('cyan')


from math import factorial
from collections import Counter, defaultdict
from heapq import heapify, heappop, heappush
import os
import sys
from io import BytesIO, IOBase
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')

def RL():
	return map(int, sys.stdin.readline().rstrip().split())

def N():
	return int(input())

def comb(n, m):
	return factorial(n) / (factorial(m) * factorial(n - m)) if n >= m else 0

def perm(n, m):
	return factorial(n) // factorial(n - m) if n >= m else 0

def mdis(x1, y1, x2, y2):
	return abs(x1 - x2) + abs(y1 - y2)
mod = 1000000007
INF = float('inf')

def main():
	for _ in range(N()):
		s = input()
		if '0' in s:
			num = 0
			tag = 0
			for c in s:
				if c != '0':
					num += int(c)
				if int(c) % 2 == 0:
					tag += 1
			if num % 3 == 0 and tag > 1 or num == 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
main()


t = int(input())
ans = []
for _ in range(t):
	n = list(input())
	flag = 0
	s = 0
	if '0' not in n:
		ans.append('cyan')
		continue
	if '0' in n:
		n.remove('0')
	for i in n:
		if int(i) % 2 == 0:
			flag = 1
		s = s + int(i)
	if s % 3 == 0 and flag == 1:
		ans.append('red')
	else:
		ans.append('cyan')
for i in ans:
	print(i)


n = int(input())
for i in range(n):
	s = input().strip()
	if '0' in s:
		sum = 0
		for i in range(len(s)):
			sum += int(s[i])
		if sum % 3 == 0:
			if '2' in s or '4' in s or '6' in s or ('8' in s) or (s.count('0') > 1):
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	t = input()
	d = 0
	p = 0
	q = 0
	for c in t:
		t = ord(c) - ord('0')
		d += t
		if t % 2 == 0:
			p += 1
		if t == 0:
			q += 1
	if d % 3 or p < 2 or q < 1:
		print('cyan')
	else:
		print('red')


N = int(input())
for n in range(N):
	y = list(map(int, list(input())))
	isZeroPresent = False
	tot = sum(y)
	divBy2 = False
	for c in y:
		if c == 0:
			if isZeroPresent:
				divBy2 = True
			isZeroPresent = True
		elif c % 2 == 0:
			divBy2 = True
	if divBy2 and isZeroPresent and (tot % 3 == 0):
		print('red')
	else:
		print('cyan')


kl = int(input())
for l in range(kl):
	s = str(input())
	sm = 0
	kn = 0
	kc = 0
	for i in range(len(s)):
		if s[i] == '0':
			kn += 1
		if int(s[i]) % 2 == 0 and s[i] != '0':
			kc = 1
		sm += int(s[i])
	if sm % 3 == 0 and kn != 0 and (kc != 0) or (sm % 3 == 0 and kn >= 2 and (kc == 0)):
		print('red')
	else:
		print('cyan')


import os
import sys

def main():
	N = read_int()
	for _ in range(N):
		print('red' if solve(inp()) else 'cyan')

def solve(S):
	c = [S.count(d) for d in '0123456789']
	if c[0] == 0:
		return False
	c[0] -= 1
	ev = sum([c[i] for i in (0, 2, 4, 6, 8)])
	sd = sum([i * c[i] for i in range(10)])
	return sd % 3 == 0 and ev > 0
DEBUG = 'DEBUG' in os.environ

def inp():
	return sys.stdin.readline().rstrip()

def read_int():
	return int(inp())

def read_ints():
	return [int(e) for e in inp().split()]

def dprint(*value, sep=' ', end='\n'):
	if DEBUG:
		print(*value, sep=sep, end=end)
main()


def get_sum(num):
	sum1 = 0
	c_zero = False
	c_2 = False
	count_2 = 0
	c_3 = False
	for i in range(len(num)):
		num1 = int(num[i])
		if num1 == 0:
			c_zero = True
		if num1 % 2 == 0:
			count_2 = count_2 + 1
		sum1 = sum1 + num1
	if sum1 % 3 == 0:
		c_3 = True
	if count_2 > 1:
		c_2 = True
	if c_3 and c_2 and c_zero:
		return 'red'
	else:
		return 'cyan'
n = int(input())
for i in range(n):
	num = input()
	print(get_sum(num))


from collections import Counter
n = int(input())
for _ in range(n):
	y = input()
	digits = Counter(y)
	digits_sum = 0
	for key in digits:
		digits_sum += int(key) * digits[key]
	if '0' not in digits:
		print('cyan')
	elif digits_sum % 3 != 0:
		print('cyan')
	elif digits['0'] >= 2:
		print('red')
	elif '2' in digits:
		print('red')
	elif '4' in digits:
		print('red')
	elif '6' in digits:
		print('red')
	elif '8' in digits:
		print('red')
	else:
		print('cyan')


n = int(input())
con1 = False
con2 = False
con3 = False
sum = 0
for i in range(n):
	s1 = input()
	con1 = False
	con2 = False
	con3 = False
	sum = 0
	if s1.find('0') != -1:
		con1 = True
		s = s1.replace('0', '', 1)
		for j in range(len(s)):
			sum += int(s[j])
			if int(s[j]) % 2 == 0:
				con2 = True
		if sum % 3 == 0:
			con3 = True
		if con1 and con2 and con3:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
while n:
	y = input()
	y = [int(y[i]) for i in range(len(y))]
	y.sort()
	if y[0] == 0 and sum(y) % 3 == 0:
		flag = False
		for i in range(1, len(y)):
			if y[i] % 2 == 0:
				flag = True
		if flag:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')
	n -= 1


a = int(input())
for i in range(a):
	num = input()
	even_check = 0
	num_check = 0
	if '0' not in num:
		print('cyan')
	else:
		for e in num:
			num_check += int(e)
			if int(e) % 2 == 0:
				even_check += 1
		if num_check % 3 == 0 and even_check >= 2:
			print('red')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	s = input()
	summ = 0
	flag1 = False
	flag2 = False
	flag3 = True
	for x in s:
		summ += int(x)
		if flag1 and x == '0' or (x != '0' and int(x) % 2 == 0):
			flag2 = True
			flag3 = False
		if x == '0':
			flag1 = True
		else:
			flag3 = False
	if flag1 and flag2 and (summ % 3 == 0) or flag3:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	if '0' in s and sum((int(x) for x in s)) % 3 == 0 and (sum((1 if int(x) % 2 == 0 else 0 for x in s)) >= 2):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	s = input()
	contain_even = s.count('0') >= 2
	for i in s:
		if int(i) in [2, 4, 6, 8]:
			contain_even = True
	if '0' in s and sum(map(int, s)) % 3 == 0 and contain_even:
		print('red')
	else:
		print('cyan')


T = int(input())
for vv in range(T):
	a = input()
	n = len(a)
	f = 0
	if a == '0':
		print('red')
	else:
		for i in range(n):
			if a[i] == '0':
				f = 1
				j = i
				break
		if f == 0:
			print('cyan')
		else:
			f = 0
			for i in range(n):
				if int(a[i]) % 2 == 0 and i != j:
					f = 1
					break
			if f == 0:
				print('cyan')
			else:
				f = 0
				t = 0
				for i in range(n):
					t = t + int(a[i])
				if t % 3 == 0:
					print('red')
				else:
					print('cyan')


n = int(input())
for i in range(n):
	a = input()
	gg = 0
	for i in range(len(a)):
		if gg:
			break
		for j in range(len(a)):
			if j != i:
				if (int(a[j]) * 10 + int(a[i])) % 4 == 0 or (int(a[i]) * 10 + int(a[j])) % 4 == 0:
					gg = 1
	if a.count('0') == 0:
		gg = 0
	if gg:
		if sum(map(int, list(a))) % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	t = [0, 0]
	for j in s:
		if int(j) % 2 == 0 and j != '0':
			t[1] += 1
		if j == '0':
			t[0] += 1
	if t[1] > 0:
		if t[0] > 0:
			k = sum(list(map(int, s.split())))
			if k % 3 == 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	elif t[0] > 1:
		k = sum(list(map(int, s.split())))
		if k % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for i in range(int(input())):
	s = list(map(int, ' '.join(input()).split()))
	x = y = z = 0
	for j in s:
		if x == 0 and j == 0:
			x = 1
		elif j % 2 == 0:
			y = 1
		z += j
	print('red' if z % 3 == 0 and x and y else 'cyan')


def div(a, x):
	if x == 3:
		if sum(a) % 3 == 0:
			return True
	elif x == 20:
		f0 = 0
		fe = 0
		for i in a:
			if i == 0:
				f0 += 1
		for i in a:
			if i % 2 == 0 and i != 0:
				fe += 1
		if f0 >= 2:
			return True
		elif f0 == 1 and fe > 0:
			return True
		else:
			return False
n = int(input())
for _ in range(n):
	a = list(input())
	a = list(map(int, a))
	d3 = div(a, 3)
	d20 = div(a, 20)
	if d3 and d20:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	(f2, f3, f10) = (0, 0, 0)
	sm = 0
	for j in a:
		sm += int(j)
		if j == '0':
			f10 = 1
		if int(j) % 2 == 0:
			f2 += 1
	if sm % 3 == 0:
		f3 = 1
	if f3 == 1 and f10 == 1 and (f2 >= 2):
		print('red')
	else:
		print('cyan')


ad = int(input())
for i in range(ad):
	l = input()
	s = 0
	f = 0
	g = 0
	for j in l:
		f += int(j)
		if int(j) == 0:
			g += 1
		if int(j) % 2 == 0:
			s += 1
	if f == 0:
		print('red')
	elif g >= 1 and s >= 2 and (f % 3 == 0):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	n = input()
	nole = n.count('0')
	symbols = list(sorted(set(n)))
	chet = 0
	num = []
	for i in range(len(n)):
		if int(n[i]) % 2 == 0:
			chet += 1
	for i in range(len(n)):
		num.append(int(n[i]))
	if nole > 0 and sum(num) % 3 == 0 and (chet >= 2):
		print('red')
	else:
		print('cyan')


import sys
n = int(sys.stdin.readline().rstrip())
y = sys.stdin.read().split()
evens = set('2468')

def main():
	for i in y:
		digits = set(i)
		if not '0' in digits:
			yield 'cyan'
			continue
		if int(i) % 3:
			yield 'cyan'
			continue
		c = i.count('0')
		if c == 1 and digits & evens:
			yield 'red'
		elif c >= 2:
			yield 'red'
		else:
			yield 'cyan'
ans = main()
print(*ans, sep='\n')


n = int(input())
while n:
	n -= 1
	num = input()
	if '0' in num:
		item = 0
		flag = 0
		for element in num:
			item += int(element)
			if int(element) % 2 == 0 and int(element) != 0 or num.count('0') > 1:
				flag = 1
		if item % 3 == 0 and flag == 1 or item == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	zeroes = 0
	evens = 0
	summ = 0
	for b in a:
		if int(b) % 2 == 0:
			evens += 1
		if int(b) == 0:
			zeroes += 1
		summ += int(b)
	if zeroes > 0 and evens > 1 and (summ % 3 == 0):
		print('red')
	else:
		print('cyan')


import sys
input = sys.stdin.readline

def ii():
	return int(input())

def mi():
	return map(int, input().rstrip().split())

def lmi():
	return list(map(int, input().rstrip().split()))

def fi():
	return float(input())

def mfi():
	return map(float, input().rstrip().split())

def lmfi():
	return list(map(float, input().rstrip().split()))

def li():
	return list(input().rstrip())

def exit(*arg):
	print(*arg)
	sys.exit()

def main():
	n = ii()
	for _ in range(n):
		s = input().rstrip()
		i0 = 0
		ie = 0
		ss = 0
		for a in s:
			t = int(a)
			if t == 0:
				i0 += 1
			if t % 2 == 0:
				ie += 1
			ss += t
		if ss == 0:
			print('red')
		elif ss % 3 == 0 and i0 >= 1 and (ie - i0 >= 1 or i0 >= 2):
			print('red')
		else:
			print('cyan')
	return
main()


from functools import reduce
import os
import sys
from math import *
from collections import *
from fractions import *
from bisect import *
from heapq import *
from io import BytesIO, IOBase
input = lambda : sys.stdin.readline().rstrip('\r\n')

def value():
	return tuple(map(int, input().split()))

def arr():
	return [int(i) for i in input().split()]

def sarr():
	return [int(i) for i in input()]

def starr():
	return [str(x) for x in input().split()]

def inn():
	return int(input())

def svalue():
	return tuple(map(str, input().split()))

def parr():
	return [value() for i in range(n)]
mo = 1000000007
n = inn()
for i in range(n):
	a = sarr()
	c0 = a.count(0)
	ce = 0
	for i in a:
		if i % 2 == 0:
			ce += 1
	sm = 1 if sum(a) % 3 == 0 else 0
	if sm == 1 and c0 > 0 and (ce > 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	x = input()
	(f1, f2, f3) = (0, 0, 0)
	if '0' in x:
		f1 += 1
	cnt = 0
	for i in x:
		cnt += int(i)
	if cnt % 3 == 0:
		f2 += 1
	even = ['2', '4', '6', '8']
	for i in even:
		if i in x:
			f3 += 1
			break
	if f3 == 0:
		if x.count('0') >= 2:
			f3 += 1
	if f1 == 1 and f2 == 1 and (f3 == 1):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	var = input()
	sum = 0
	zero = 0
	even = 0
	for i in var:
		sum = sum + int(i)
		if int(i) == 0:
			zero = zero + 1
		elif int(i) % 2 == 0:
			even = even + 1
	if zero > 0 and even + zero > 1 and (sum % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	q = str(s)
	l = list(q)
	p = set(l)
	if '0' not in q:
		print('cyan')
		continue
	elif len(p) == 1 and p == {'0'}:
		print('red')
		continue
	elif len(p) == 1 and p != {'0'}:
		print('cyan')
		continue
	else:
		x = l.index('0')
		del l[x]
		y = 0
		for j in range(len(q)):
			z = int(s[j])
			y = y + z
		if y % 3 == 0 and ('2' in l or '4' in l or '6' in l or ('8' in l) or ('0' in l)):
			print('red')
		else:
			print('cyan')


t = int(input())
for i in range(t):
	b = input()
	c = []
	q = 0
	p = 0
	for j in b:
		c.append(int(j))
		if int(j) == 0:
			p += 1
		if int(j) % 2 == 0 and int(j) != 0:
			q = 1
	if p == 0:
		print('cyan')
	elif p == 1:
		if q == 1:
			if sum(c) % 3 == 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	elif sum(c) % 3 == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	t = input()
	r = 0
	for j in range(len(t)):
		r = r + int(t[j])
	if '0' * len(t) == t:
		print('red')
	elif '0' in t and ('2' in t or '6' in t or '4' in t or ('8' in t)) and (r % 3 == 0):
		print('red')
	elif t.count('0') >= 2 and r % 3 == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input().strip())):
	n = input().strip()
	if int(n) == 0:
		print('red')
	else:
		n = [int(x) for x in list(str(n))]
		su = sum(n)
		if su % 3 != 0:
			print('cyan')
		else:
			co = n.count(0)
			if co > 1:
				print('red')
			elif co == 0:
				print('cyan')
			else:
				ev = False
				for x in n:
					if x % 2 == 0 and x != 0:
						ev = True
						break
				if ev:
					print('red')
				else:
					print('cyan')


N = int(input())
for _ in range(N):
	num = sorted(list(map(int, list(input()))))
	if num[0] == 0 and sum(num) % 3 == 0 and any(list(map(lambda x: not x % 2, num[1:]))):
		print('red')
	else:
		print('cyan')


def check(n):
	ans = False
	for i in n:
		if int(i) % 2 == 0 and i != '0':
			ans = True
			break
	if n.count('0') > 1:
		ans = True
	return ans

def check1(n):
	ans = False
	for i in n:
		if i == '0':
			ans = True
			break
	return ans
for i in range(int(input())):
	n = input()
	if check(n) and check1(n) and (sum(map(int, list(n))) % 3 == 0):
		print('red')
	else:
		print('cyan')


from collections import defaultdict
t = int(input())
for i in range(t):
	x = list(input())
	d = defaultdict(int)
	for j in x:
		d[j] += 1
	if d['0'] > 0 and d['0'] + d['2'] + d['8'] + d['6'] + d['4'] > 1:
		if sum(list(map(int, x))) % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	freq = [0 for i in range(10)]
	string = input()
	(*arr,) = map(int, list(string))
	n = len(arr)
	sums = 0
	for i in range(n):
		freq[arr[i]] += 1
		sums += arr[i]
	if freq[0] > 0 and (freq[0] > 1 or (freq[2] > 0 or freq[4] > 0 or freq[6] > 0 or (freq[8] > 0))) and (sums % 3 == 0):
		print('red')
	elif string == '0' * n:
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	n = input()
	s = sum([int(i) for i in n])
	m = n.count('0')
	if s % 3:
		print('cyan')
	elif m == 0:
		print('cyan')
	elif m > 1:
		print('red')
	else:
		for i in n:
			if int(i) != 0 and int(i) & 1 == 0:
				print('red')
				break
		else:
			print('cyan')


for i in range(int(input())):
	s = input()
	if '0' in s and sum(map(int, s)) % 3 == 0 and (s.count('0') >= 2 or len(list(filter(lambda x: int(x) % 2 == 0 and (not int(x) == 0), s))) != 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = input()
	if '0' in s and sum([int(c) for c in s]) % 3 == 0 and (sum((1 if int(c) % 2 == 0 else 0 for c in s)) >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	N = int(s)
	ten = s.count('0')
	cnt = s.count('0') + s.count('2') + s.count('4') + s.count('6') + s.count('8')
	if ten and N % 3 == 0 and (cnt >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for q in range(n):
	a = input()
	if sum([int(q) for q in a]) % 3 != 0:
		print('cyan')
	elif a.count('0') == 0:
		print('cyan')
	else:
		w = a.find('0')
		a = a[:w] + a[w + 1:]
		if any((q in ['0', '2', '4', '6', '8'] for q in a)):
			print('red')
		else:
			print('cyan')


n = int(input())
a = []
for i in range(n):
	s = input()
	a.append(s)
for i in a:
	kol = 0
	kol0 = 0
	kol2 = 0
	for j in i:
		j = int(j)
		if j == 0:
			kol0 += 1
		if j == 2:
			kol2 += 1
		if j == 4:
			kol2 += 1
		if j == 6:
			kol2 += 1
		if j == 8:
			kol2 += 1
		kol += j
	if kol0 > 1:
		if kol % 3 == 0:
			print('red')
		elif kol == 0:
			print('red')
		else:
			print('cyan')
	elif kol0 == 1:
		if kol % 3 == 0 and kol2 != 0:
			print('red')
		elif kol == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


def color(j):
	if '0' in j:
		j = j.replace('0', '', 1)
		sum = 0
		for dig in j:
			sum += int(dig)
		if sum % 3 == 0:
			for b in j:
				if int(b) % 2 == 0:
					return 'red'
	return 'cyan'

def main():
	for i in range(int(input())):
		print(color(str(input())))
main()


from sys import stdin
from collections import deque
mod = 10 ** 9 + 7
from bisect import bisect_right
from bisect import bisect_left
from collections import defaultdict
from math import sqrt, factorial, gcd, log2, inf, ceil
import heapq
n = int(input())
for i in range(n):
	z = list(input())
	z.sort()
	if int(''.join(z)) == 0:
		print('red')
	elif z.count('0') == 0:
		print('cyan')
	else:
		s = 0
		even = 0
		for i in z:
			s += int(i)
			if int(i) % 2 == 0 and int(i) != 0:
				even = 1
		if even == 1 and s % 3 == 0:
			print('red')
		elif z.count('0') > 1 and s % 3 == 0:
			print('red')
		else:
			print('cyan')


tests = int(input())
for te in range(tests):
	stringa = input()
	suma = 0
	flag = 0
	zeros = 0
	even = 0
	for i in range(len(stringa)):
		if stringa[i] == '0':
			zeros += 1
			flag = 1
		if int(stringa[i]) % 2 == 0:
			even += 1
		suma += int(stringa[i])
	if zeros > 0 and even > 1 and (suma % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
lst = []
for _ in range(n):
	lst.append(input())
for i in lst:
	lst2 = []
	for j in i:
		lst2.append(j)
	lst3 = list(map(int, lst2))
	lst3.sort()
	count = 0
	for i in lst3:
		if i % 2 == 0:
			count += 1
	if sum(lst3) % 3 != 0:
		print('cyan')
	elif 0 in lst3 and count > 1:
		print('red')
	elif not (2 in lst3 or 4 in lst3 or 6 in lst3 or (8 in lst3)):
		print('cyan')
	elif 0 in lst3 and count < 2:
		print('cyan')
	elif 0 not in lst3 and count > 1:
		print('cyan')
	elif 0 not in lst3 and count < 2:
		print('cyan')
	else:
		print('red')


import collections
import itertools
N = int(input())

def p(num):
	cnt = collections.Counter(num)
	if (cnt['0'] == 0 or (cnt['2'] == cnt['4'] == cnt['6'] == cnt['8'] == 0 and cnt['0'] == 1) or sum(map(int, num)) % 3 != 0) and (not (len(cnt.keys()) == 1 and cnt['0'] > 0)) or cnt == collections.Counter('20') or cnt == collections.Counter('40'):
		return False
	else:
		return True

def p2(num):
	for perm in itertools.permutations(num):
		if int(''.join(perm)) % 60 == 0:
			return True
	return False
for _ in range(N):
	num = input()
	print('red' if p(num) else 'cyan')


for _ in range(int(input())):
	s = list(input())
	s.sort()
	if s.count('0') == 0:
		print('cyan')
	else:
		summ = 0
		ev = 0
		if s.count('0') >= 2:
			ev = 2
		else:
			for i in s:
				if int(i) % 2 == 0:
					ev += 1
				if ev == 2:
					break
		for i in s:
			if i != '0':
				summ += int(i)
		if summ % 3 == 0 and ev == 2:
			print('red')
		else:
			print('cyan')


for _ in range(int(input())):
	y = list(map(int, input()))
	if sum(y) == 0:
		print('red')
	elif sum(y) % 3 == 0 and 0 in y and (any(filter(lambda x: x != 0 and x % 2 == 0, y)) or y.count(0) > 1):
		print('red')
	else:
		print('cyan')


def main():
	n = int(input())
	for i in range(n):
		s = input()
		if '0' not in s:
			print('cyan')
			continue
		s = s.replace('0', '', 1)
		total = 0
		even = False
		for j in s:
			total += int(j)
			if int(j) % 2 == 0:
				even = True
		if total % 3 != 0:
			print('cyan')
			continue
		if not even:
			print('cyan')
			continue
		print('red')
main()


for i in range(int(input())):
	k = list(input())
	n = 0
	for i in range(len(k)):
		k[i] = int(k[i])
	if 0 in k:
		if 2 in k or 4 in k or 6 in k or (8 in k):
			if sum(k) % 3 == 0:
				print('red')
				n = 1
	if k.count(0) >= 2 and sum(k) % 3 == 0 and (n != 1):
		print('red')
		n = 1
	if n == 0:
		print('cyan')


n = int(input())
for _ in range(n):
	print(['cyan', 'red'][(lambda x: sum([int(i) for i in x]) % 3 == 0 and (True in [str(i * 2) in x for i in range(1, 5)] or list(x).count('0') > 1) and ('0' in x))(input())])


import sys
import math
fileoperation = 0
if fileoperation:
	orig_stdout = sys.stdout
	orig_stdin = sys.stdin
	inputfile = open('W:/Competitive Programming/input.txt', 'r')
	outputfile = open('W:/Competitive Programming/output.txt', 'w')
	sys.stdin = inputfile
	sys.stdout = outputfile
mod = 1000000007

def nospace(l):
	ans = ''.join((str(i) for i in l))
	return ans
t = int(input())
for tt in range(t):
	s = str(input())
	z = s.count('0')
	thr = 0
	for ss in s:
		thr += int(ss)
	z -= 1
	c = 0
	c += s.count('2')
	c += s.count('4')
	c += s.count('6')
	c += s.count('8')
	if thr % 3 == 0:
		if c > 0 and z >= 0:
			print('red')
		elif z >= 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')
if fileoperation:
	sys.stdout = orig_stdout
	sys.stdin = orig_stdin
	inputfile.close()
	outputfile.close()


t = int(input())
for i in range(t):
	n = input()
	x = n.count('0')
	n = int(n)
	sum1 = 0
	count1 = 0
	while n != 0:
		s = n % 10
		sum1 = sum1 + s
		if s % 2 == 0 and s != 0:
			count1 = count1 + 1
		n = n // 10
	if sum1 % 3 == 0 and count1 >= 1 and (x >= 1):
		print('red')
	elif sum1 % 3 == 0 and x >= 2:
		print('red')
	else:
		print('cyan')


n = int(input())
for k in range(n):
	m = input().strip()
	summ = 0
	nul_num = 0
	ch = False
	for i in m:
		a = int(i)
		summ += a
		if a == 0:
			nul_num += 1
		elif a % 2 == 0:
			ch = True
	if summ % 3 == 0 and nul_num >= 1 and (nul_num > 1 or ch):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	s = input()
	zero = s.count('0')
	two = s.count('2')
	four = s.count('4')
	six = s.count('6')
	eight = s.count('8')
	if zero:
		zero -= 1
		if s == '0' or ((zero or two or four or six or eight) and sum([int(x) for x in s]) % 3 == 0):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


def sum_digits(num):
	ans = 0
	while num:
		ans += num % 10
		num //= 10
	return ans
n = int(input())
for _ in range(n):
	y = input()
	z = y
	y = y.replace('0', '')
	ans = 'cyan'
	if not y:
		ans = 'red'
	elif sum_digits(int(y)) % 3 == 0:
		if z.count('0') >= 2:
			ans = 'red'
		else:
			for c in y:
				num = int(c)
				if num % 2 == 0 and '0' in z:
					ans = 'red'
					break
	print(ans)


def check_3(num):
	sum = 0
	for char in num:
		sum = (sum + int(char)) % 3
	if sum == 0:
		return 1
	return 0

def check_2_10(num):
	b = 0
	c = 0
	count = 0
	for char in num:
		n = int(char)
		if n != 0 and n % 2 == 0:
			b = 1
		if n == 0:
			count += 1
	if b == 0 and count > 1:
		return 1
	if count > 0:
		c = 1
	return b and c
N = int(input())
for i in range(N):
	num = input()
	if check_3(num) and check_2_10(num):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	a = list(input())
	b = int(''.join(a))
	s = 0
	k = 0
	r = 0
	for i in range(len(a)):
		s += int(a[i])
		if int(a[i]) % 2 == 0 and int(a[i]) != 0:
			k += 1
		elif int(a[i]) == 0:
			r += 1
	if r > 0 and s % 3 == 0 and (k > 0):
		print('red')
	elif r > 1 and s % 3 == 0:
		print('red')
	elif b == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(0, n):
	sumofdigits = 0
	evencount = 0
	count = 0
	s = str(input())
	for i in range(0, len(s)):
		sumofdigits += int(s[i])
		if int(s[i]) % 2 == 0:
			evencount += 1
		if s[i] == '0':
			count += 1
	if count > 0 and evencount > 1 and (sumofdigits % 3 == 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	t = 1
	s = input()
	if '0' in s:
		t = t * 1
	else:
		t = t * 0
	if '0' in s and '0' in s[s.index('0') + 1:]:
		t *= 1
	elif '8' in s:
		t *= 1
	elif '2' in s:
		t *= 1
	elif '4' in s:
		t *= 1
	elif '6' in s:
		t *= 1
	else:
		t *= 0
	if int(s) % 3 != 0:
		t *= 0
	if t == 1 or int(s) % 60 == 0:
		print('red')
	else:
		print('cyan')


from sys import stdin, stdout
ip = lambda : stdin.readline().rstrip('\r\n')
ips = lambda : ip().split()
out = lambda x, end='\n': stdout.write(str(x) + end)
for _ in range(int(ip())):
	s = list(map(int, '' + ip()))
	if sum(s) % 3 == 0 and 0 in s and (any((x in s for x in [2, 4, 6, 8])) or s.index(0) != len(s) - 1 - s[::-1].index(0)):
		out('red')
	else:
		out('cyan')


N = int(input())
for _ in range(N):
	num = list(map(int, list(input())))
	ln = len(num)
	zero_bol = 0
	dive_bol = False
	two_bol = False
	if ln == 1 and num[0] == 0:
		print('red')
		continue
	for i in range(ln):
		if num[i] % 2 == 0:
			if num[i] != 0:
				two_bol = True
			elif zero_bol:
				two_bol = True
			if num[i] == 0:
				zero_bol = True
	if sum(num) % 3 == 0:
		dive_bol = True
	if two_bol and zero_bol and dive_bol:
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	a = str(input())
	if a.count('0') == 0:
		print('cyan')
	elif a.count('0') > 1:
		s = 0
		for j in a:
			s += int(j)
		if s % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		g = 0
		s = 0
		for j in a:
			s += int(j)
			if int(j) % 2 == 0 and int(j) != 0:
				g = 1
		if int(a) == 0:
			print('red')
		elif g == 1 and s % 3 == 0:
			print('red')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	s = input()
	sum = 0
	flag = False
	flag2 = False
	for j in s:
		sum += int(j)
		if j == '0':
			flag2 = True
		elif int(j) % 2 == 0:
			flag = True
	if sum % 3 == 0 and flag == True and (flag2 == True) or sum == 0:
		print('red')
	elif flag == False and s.count('0') >= 2 and (sum % 3 == 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = str(input())
	l = list(n)
	c = 0
	s = 0
	t = 0
	p = 0
	for i in l:
		if int(i) == 0 and p == 0:
			t = 1
			p = 1
		elif int(i) % 2 == 0:
			c = 1
		s = s + int(i)
	if s % 3 == 0 and c == 1 and (t == 1):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	num = input()
	zero_flag = False
	even_flag = False
	three_flag = False
	total_sum = 0
	for digit in num:
		if int(digit) == 0:
			if zero_flag:
				even_flag = True
			else:
				zero_flag = True
		elif int(digit) % 2 == 0:
			even_flag = True
		total_sum += int(digit)
	if total_sum % 3 == 0:
		three_flag = True
	if zero_flag and even_flag and three_flag:
		print('red')
	elif total_sum == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	s = list(input())
	s = list(map(int, s))
	zero = 0
	even = 0
	for i in s:
		if not i % 2:
			if i:
				even += 1
			else:
				zero += 1
	if not sum(s) % 3 and (zero and even or zero >= 2):
		print('red')
	else:
		print('cyan')


for ii in range(int(input())):
	n = str(input())
	n0 = 0
	nE = 0
	su = 0
	for x in n:
		if x == '0':
			n0 += 1
			nE += 1
		elif int(x) & 1 == 0:
			nE += 1
		su += int(x)
	if su % 3 == 0:
		if su == 0:
			print('red')
		elif n0 == nE and n0 >= 2 or (n0 < nE and n0 >= 1):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	t = input()
	l = list(map(int, t))
	count_0 = 0
	count = 0
	if int(t) == 0:
		print('red')
		continue
	for i in l:
		if i == 0:
			count_0 += 1
		elif i % 2 == 0:
			count += 1
	if sum(l) % 3 == 0:
		if (count_0 > 1 or count > 0) and count_0 > 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


def all_even(x):
	for i in x:
		if int(i) % 2 == 0 and i != '0':
			return False
	return True
(n, res) = (int(input()), [])
for i in range(n):
	res.append(input())
for i in res:
	if '0' not in i:
		print('cyan')
		continue
	if sum([int(m) for m in list(i)]) % 3 != 0:
		print('cyan')
		continue
	if i.count('0') == 1 and all_even(i):
		print('cyan')
		continue
	else:
		print('red')
		continue


n = int(input().strip())
for _ in range(n):
	x = input().strip()
	(z, e) = (False, False)
	if int(x) % 3 == 0:
		i = 0
		while i < len(x) and (not z or not e):
			if not z and x[i] == '0':
				z = True
				i += 1
				continue
			if int(x[i]) % 2 == 0:
				e = True
			i += 1
	if z and e:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	y = list(map(int, list(input())))
	if 0 in y:
		y.remove(0)
		if set(y) & set([2, 4, 6, 8, 0]):
			if sum(y) % 3 == 0:
				print('red')
			else:
				print('cyan')
		elif y:
			print('cyan')
		else:
			print('red')
	else:
		print('cyan')


a = int(input())
for i in range(a):
	s = input()
	N = int(s)
	ten = s.count('0')
	cmd = s.count('0') + s.count('8') + s.count('4') + s.count('2') + s.count('6')
	if ten and N % 3 == 0 and (cmd >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	ans = 0
	flag = 0
	v = 0
	for t in s:
		ans += int(t)
		if t == '0':
			v += 1
		if int(t) % 2 == 0 and t != '0' or (t == '0' and v > 1):
			flag = 1
	if flag and ans % 3 == 0 and (v > 0) or s == len(s) * '0':
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	x = input()
	lista = [0] * len(x)
	for j in range(len(x)):
		lista[j] = int(x[j])
	if sum(lista) % 3 == 0 and lista.count(0) > 0 and (lista.count(2) > 0 or lista.count(0) > 1 or lista.count(4) > 0 or (lista.count(6) > 0) or (lista.count(8) > 0)):
		print('red')
	else:
		print('cyan')


def main():
	n = int(input())
	y = []
	for i in range(n):
		i = input()
		if '0' in i and sumcif(i) % 3 == 0 and (ult2(i) % 4 == True):
			print('red')
		else:
			print('cyan')

def sumcif(i):
	s = 0
	for el in i:
		s += int(el)
	return s

def ult2(i):
	nrz = 0
	for el in i:
		if el != '0':
			if int(el + '0') % 4 == 0:
				return True
		else:
			nrz += 1
	if nrz >= 2:
		return True
	return False
main()


t = int(input())
for _ in range(t):
	s = list(input())
	l = [int(c) for c in s]
	l.sort()
	red = sum(l) % 3 == 0 and l[0] == 0 and (sum([i % 2 == 0 for i in l[1:]]) > 0)
	print('red' if red else 'cyan')


n = int(input())
for i in range(n):
	x = [int(z) for z in input()]
	ans = 'cyan'
	if 0 in x:
		x.remove(0)
		if sum(x) % 3 == 0:
			for i in range(0, 10, 2):
				if i in x:
					ans = 'red'
	print(ans)


t = int(input())
for _ in range(t):
	b = input()
	su = 0
	countz = 0
	for i in b:
		if i == '0':
			countz = countz + 1
		else:
			su = su + int(i)
	if countz != 0:
		if su % 3 == 0:
			if countz == 1:
				if '2' in b or '4' in b or '6' in b or ('8' in b):
					print('red')
				else:
					print('cyan')
			elif '2' in b or '4' in b or '6' in b or ('8' in b) or ('0' in b):
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
ans = list()
for i in range(n):
	s = input()
	test3 = 0
	test0 = 0
	test2 = 0
	for i in s:
		if int(i) == 0:
			test0 += 1
		if int(i) % 2 == 0:
			test2 += 1
		test3 += int(i)
	if test3 % 3 == 0 and (test0 >= 2 or (test0 == 1 and test2 - test0 > 0)):
		ans.append('red')
	else:
		ans.append('cyan')
for i in ans:
	print(i)


l1 = []
n = int(input())
for k in range(n):
	s = input()
	l = [int(i) for i in s]
	if sum(l) % 3 == 0 and 0 in l:
		l.remove(0)
		if 0 in l or 2 in l or 4 in l or (6 in l) or (8 in l):
			l1.append('red')
		else:
			l1.append('cyan')
	else:
		l1.append('cyan')
for p in l1:
	print(p)


no_of_testcases = int(input())
for i in range(no_of_testcases):
	number_list = map(int, list(input()))
	got_zero = 0
	got_even = -1
	sum = 0
	for i in number_list:
		if i % 2 == 0:
			got_even = got_even + 1
		if i == 0:
			got_zero = 1
		sum = sum + i
	if got_zero == 1 and got_even > 0 and (sum % 3 == 0):
		print('red')
	else:
		print('cyan')


import sys
from heapq import heappop
from heapq import heappush
from heapq import heapify
from bisect import insort
from bisect import bisect_right
from bisect import bisect_left
from sys import stdin, stdout
from collections import defaultdict, deque
from math import log2, ceil, floor
inp = lambda : int(input())
sip = lambda : input()
mulip = lambda : map(int, input().split())
lst = lambda : list(map(int, input().split()))
slst = lambda : list(sip())
arr2d = lambda x: [[int(j) for j in input().split()] for i in range(x)]
odds = lambda l: len(list(filter(lambda x: x % 2 != 0, l)))
evens = lambda l: len(list(filter(lambda x: x % 2 == 0, l)))
mod = pow(10, 9) + 7
Judge = 0
if Judge:
	sys.stdin = open('input.in', 'r')
for _ in range(inp()):
	l = list(sip())
	l = [int(x) for x in l]
	l = sorted(l)
	if l[0] != 0:
		print('cyan')
	else:
		f = 0
		for i in range(1, len(l)):
			if l[i] % 2 == 0:
				f = 1
				break
		s = sum(l)
		if f == 1 and s % 3 == 0:
			print('red')
		else:
			print('cyan')


n = int(input())
for i in range(n):
	s = input()
	one = 0
	e = 0
	ss = 0
	for x in s:
		p = int(x)
		if p == 0:
			one += 1
		if p % 2 == 0:
			e += 1
		ss += p
	if ss % 3 == 0 and e > 1 and (one > 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	ans = 'cyan'
	cntofzero = 0
	countofeven = 0
	sod = 0
	for i in s:
		sod += int(i)
		if i == '0':
			cntofzero += 1
		if int(i) % 2 == 0:
			countofeven += 1
	if sod % 3 == 0 and cntofzero > 0 and (countofeven > 1):
		ans = 'red'
	print(ans)


def sum(n):
	count = 0
	for i in n:
		count += int(i)
	return count
t = int(input())
for nt in range(t):
	num = input()
	n = int(num)
	if n == 0:
		print('red')
		continue
	if '0' not in num:
		print('cyan')
		continue
	if sum(num) % 3 != 0:
		print('cyan')
		continue
	flag = 0
	for i in num:
		if i == '2' or i == '4' or i == '6' or (i == '8'):
			print('red')
			flag = 1
			break
	if flag == 0:
		if num.count('0') >= 2:
			print('red')
		else:
			print('cyan')


for _ in range(int(input())):
	n = input()
	c = a = 0
	f = False
	for i in n:
		if int(i) % 2 == 0:
			c += 1
	if c >= 2 and '0' in n:
		f = True
	if sum(map(int, str(n))) % 3 == 0 and f:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	x = [int(i) for i in input()]
	if not 0 in x:
		print('cyan')
		continue
	x.remove(0)
	flag = True
	for u in x:
		if u % 2 == 0:
			flag = False
			break
	if flag:
		print('cyan')
		continue
	if sum(x) % 3 == 0:
		print('red')
	else:
		print('cyan')


t = int(input())
while t:
	t -= 1
	s = input()
	l = list(s)
	sum = 0
	ctr = 0
	for i in l:
		sum += int(i)
		if int(i) % 2 == 0 and int(i) != 0:
			ctr = 1
	if sum % 3 == 0 and s.count('0') >= 1 and (ctr == 1 or s.count('0') > 1):
		print('red')
	else:
		print('cyan')


import sys
strings = iter(sys.stdin.read().split())
ntc = int(next(strings))
for tc in range(1, ntc + 1):
	s = next(strings)
	by3 = sum((int(c) for c in s)) % 3 == 0
	by10 = any((int(c) == 0 for c in s))
	by20 = by10 and sum((int(c) % 2 == 0 for c in s)) >= 2
	by60 = by20 and by3
	print('red' if by60 else 'cyan')


n = int(input())

def verificare(a):
	sum = 0
	for i in a:
		sum = sum + int(i)
	if sum % 3 != 0:
		return 0
	l = len(a)
	poz = -1
	for i in range(0, l):
		if a[i] == '0':
			poz = i
			break
	if poz == -1:
		return 0
	for i in range(0, l):
		if int(a[i]) % 2 == 0 and i != poz:
			return 1
	return 0
for i in range(0, n):
	numar = input()
	if verificare(numar) == 1:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	y = input()
	if all((d == '0' for d in y)):
		print('red')
	else:
		zeros = y.count('0')
		if not zeros:
			print('cyan')
		else:
			print('red' if (zeros > 1 or any((y.count(d) for d in '2468'))) and sum(map(int, y)) % 3 == 0 else 'cyan')


def process(S):
	S1 = sum([int(c) for c in S])
	if S1 % 3 != 0:
		return 'cyan'
	zeroes = 0
	for c in S:
		if c == '0':
			zeroes += 1
	if zeroes == 0:
		return 'cyan'
	if zeroes > 1:
		return 'red'
	for c in S:
		if c in '2468':
			return 'red'
	return 'cyan'
t = int(input())
for i in range(t):
	S = input()
	print(process(S))


n = int(input())
for i in range(n):
	a = input()
	su = 0
	flag = False
	even = 0
	for j in range(len(a)):
		if int(a[j]) == 0:
			flag = True
		if int(a[j]) % 2 == 0:
			even += 1
		su += int(a[j])
	if su % 3 == 0 and even >= 2 and flag:
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	s = str(input())
	even = 0
	total = 0
	z = 0
	for n in s:
		total += int(n)
		if int(n) % 2 == 0:
			even += 1
		if n == '0':
			z += 1
	if len(s) * '0' == s:
		print('red')
	elif total % 3 == 0 and even > 1 and (z > 0):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	s = sum([int(i) for i in n])
	e = [int(i) for i in n if int(i) % 2 == 0]
	if s % 3 == 0 and len(e) >= 2 and ('0' in n):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	n = input()
	flag1 = 0
	flag2 = 0
	flag3 = 0
	count = 0
	s = 0
	for i in n:
		if i == '0':
			flag1 = 1
	if flag1 == 1:
		for i in n:
			s += int(i)
			if int(i) % 2 == 0:
				count += 1
		if count >= 2:
			flag2 = 1
		if flag2 == 1:
			if s % 3 == 0:
				flag3 = 1
	if flag3 == 1:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	flag0 = False
	flag_sum = False
	flag_even = False
	sum = 0
	temp = input()
	for j in temp:
		if int(j) % 2 == 0 and (flag0 or int(j) != 0):
			flag_even = True
		if int(j) == 0:
			flag0 = True
		sum += int(j)
	if flag0 and sum % 3 == 0 and flag_even:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	num = [int(i) for i in input()]
	if sum(num) % 3:
		print('cyan')
	elif 0 not in num:
		print('cyan')
	else:
		a1 = num.index(0)
		ok = False
		for i in range(len(num)):
			if i != a1 and (num[i] == 2 or num[i] == 4 or num[i] == 6 or (num[i] == 8) or (num[i] == 0)):
				ok = True
				break
		print('red' if ok else 'cyan')


import sys
input = sys.stdin.readline
N = int(input())
for _ in range(N):
	s = list(map(int, list(input().rstrip())))
	if 0 in s and (any([a in s for a in [2, 4, 6, 8]]) or s.count(0) >= 2) and (sum(s) % 3 == 0):
		print('red')
	else:
		print('cyan')


for v in range(int(input())):
	a = input()
	q = 0
	for i in range(len(a)):
		q = q + int(a[i])
	if '0' * len(a) == a:
		print('red')
	elif '0' in a and ('2' in a or '4' in a or '6' in a or ('8' in a)) and (q % 3 == 0):
		print('red')
	elif a.count('0') >= 2 and q % 3 == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
y = [input() for i in range(n)]
for i in y:
	z = 0
	e = 0
	s = 0
	for d in i:
		s += int(d)
		if d == '0':
			z += 1
		if d in ('0', '2', '4', '6', '8'):
			e += 1
	print('red' if s % 3 == 0 and z >= 1 and (e >= 2) else 'cyan')


t = int(input())
for _ in range(t):
	a = [int(x) for x in input()]
	flag = 0
	blag = 0
	for x in a:
		if x == 0:
			blag += 1
		elif x % 2 == 0:
			flag = 1
	if sum(a) % 3 == 0:
		if flag == 1:
			if blag > 0:
				print('red')
			else:
				print('cyan')
		elif blag > 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


from sys import stdin, stdout

def main():
	n = stdin.readline()
	for x in range(int(n)):
		tc = stdin.readline().rstrip()
		swZero = None
		if tc.find('0') == -1:
			print('cyan')
			continue
		sum = 0
		even = 0
		for i in tc:
			ii = int(i)
			sum += ii
			if ii % 2 == 0:
				even += 1
		if sum % 3 == 0 and even > 1:
			stdout.write('red\n')
		else:
			stdout.write('cyan\n')
main()


from collections import Counter
n = int(input())
for _ in range(n):
	c = Counter(input())
	m = sum((i * c[str(i)] for i in range(10)))
	k = sum((c[str(i)] for i in range(0, 10, 2)))
	r = m % 3 == 0 and c['0'] > 0 and (k > 1)
	print('red' if r else 'cyan')


t = int(input())
for i in range(t):
	zero = 0
	isdivby2 = False
	isdivby3 = False
	s = input()
	s_sum = 0
	for i in s:
		if i == '0':
			zero += 1
		elif int(i) % 2 == 0:
			isdivby2 = True
		if zero > 1:
			isdivby2 = True
		s_sum += int(i)
	if s_sum % 3 == 0:
		isdivby3 = True
	if isdivby2 and isdivby3 and (zero >= 1):
		print('red')
	else:
		print('cyan')


def check(a):
	if int(a) == 0:
		return 1
	l = 0
	a = list(a)
	j = 0
	while j < len(a):
		if a[j] == '0':
			del a[j]
			l = 1
			break
		else:
			j += 1
	if l == 1:
		if len(a) == 0:
			return 1
		else:
			for i in a:
				if int(i) % 2 == 0:
					l = 2
					break
			if l == 2:
				s = 0
				for i in a:
					s += int(i)
				if s % 3 == 0:
					return 1
				else:
					return 0
			else:
				return 0
	else:
		return 0
n = int(input())
for i in range(n):
	a = input()
	if check(a) == 1:
		print('red')
	else:
		print('cyan')


import itertools
from functools import reduce
n = input()

def is_line_divisible_by_60(line):
	if '0' not in line:
		return False
	idx = line.find('0')
	line2 = line[:idx] + line[idx + 1:]
	sum_of_integers = reduce(lambda acc, c: acc + int(c), line2, 0)
	if sum_of_integers % 3 != 0:
		return False
	return bool(set('02468').intersection(set(line2)))
for i in range(int(n)):
	line = input()
	if is_line_divisible_by_60(line):
		print('red')
	else:
		print('cyan')


def f():
	digits = [int(s) for s in input()]
	digits.sort()
	if digits[0]:
		return 'cyan'
	digits = digits[1:]
	sum = 0
	for d in digits:
		sum += d
	if sum % 3:
		return 'cyan'
	have2 = 0
	for d in digits:
		if not d & 1:
			have2 = 1
			break
	if not have2:
		return 'cyan'
	return 'red'
t = int(input())
for i in range(t):
	print(f())


n = int(input())
y = [0] * n
for i in range(n):
	y[i] = input()
	temp = 0
	chk2 = False
	chk10 = False
	count0 = 0
	count2 = 0
	for j in y[i]:
		temp += int(j)
		if int(j) % 2 == 0 and int(j) != 0:
			chk2 = True
		if int(j) == 0:
			chk10 = True
			count0 += 1
			if count0 > 1:
				chk2 = True
	if chk2 and chk10:
		if temp % 3 == 0:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = input()
	zero = 0
	even = 0
	sum = 0
	for j in s:
		sum += int(j)
		if int(j) == 0:
			zero += 1
		if int(j) % 2 == 0:
			even += 1
	if sum % 3 == 0 and zero >= 1 and (even >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	t = input()
	total = 0
	even = False
	firstZero = False
	for i in range(len(t)):
		remain = int(t[i])
		total += remain
		if not firstZero and remain == 0:
			firstZero = True
			continue
		if remain % 2 == 0:
			even = True
	if firstZero and even and (total % 3 == 0):
		print('red')
	else:
		print('cyan')


elem = int(input())
for x in range(elem):
	num = input()
	ar = []
	zero = 0
	for y in range(len(num)):
		if num[y] == '0' or num[y] == 0:
			zero = zero + 1
		ar.append(int(num[y]))
	if zero == 0:
		print('cyan')
		continue
	if sum(ar) % 3 != 0:
		print('cyan')
		continue
	if zero > 1 or 4 in ar or 8 in ar or (2 in ar) or (6 in ar):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	n = input()
	c1 = 0
	c2 = 0
	sum = 0
	for i in range(0, len(n)):
		if n[i] == '0' or n[i] == '2' or n[i] == '4' or (n[i] == '6') or (n[i] == '8'):
			c1 += 1
		sum = sum + int(n[i])
		if n[i] == '0':
			c2 += 1
	if sum % 3 == 0 and c1 > 1 and (c2 > 0):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	k = 0
	for i in a:
		k = k + int(i)
	if k % 3 != 0:
		print('cyan')
	elif k == 0:
		print('red')
	elif a.count('0') == 1 and (a.count('2') > 0 or a.count('4') > 0 or a.count('6') > 0 or a.count('8')) > 0 and (k % 3 == 0):
		print('red')
	elif a.count('0') > 1 and k % 3 == 0:
		print('red')
	else:
		print('cyan')


from collections import defaultdict
for i in range(int(input())):
	Number = input()
	Check = 0
	MyDict = defaultdict(int)
	for j in Number:
		Check += int(j)
		MyDict[int(j)] += 1
	if 0 not in MyDict or Check % 3 != 0:
		print('cyan')
		continue
	MyDict[0] -= 1
	if MyDict[0] == 0:
		del MyDict[0]
	print('red' if Check == 0 or any([i % 2 == 0 for i in MyDict.keys()]) else 'cyan')


n = int(input())
for i in range(n):
	s = input()
	k1 = 0
	k2 = 0
	sum = 0
	for j in s:
		if int(j) == 0:
			if k1 == 0:
				k1 = 1
			else:
				k2 = 1
		elif int(j) % 2 == 0:
			k2 = 1
		sum += int(j)
	if sum % 3 == 0 and k1 == 1 and (k2 == 1):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	x = input()
	n = x
	s = 0
	f = 1
	for i in x:
		s += int(i)
	if s % 3 == 0 or s == 0:
		if n.count('0') >= 2 or ('0' in n and ('2' in n or '4' in n or '6' in n or ('8' in n))):
			f = 0
			print('red')
	if f == 1:
		print('cyan')


from __future__ import division, print_function
import os, sys
from io import BytesIO, IOBase
if sys.version_info[0] < 3:
	from __builtin__ import xrange as range
	from future_builtins import ascii, filter, hex, map, oct, zip

def ii():
	return int(input())

def si():
	return input()

def mi():
	return map(int, input().strip().split(' '))

def msi():
	return map(str, input().strip().split(' '))

def li():
	return list(mi())

def dmain():
	sys.setrecursionlimit(100000000)
	threading.stack_size(40960000)
	thread = threading.Thread(target=main)
	thread.start()
abc = 'abcdefghijklmnopqrstuvwxyz'
abd = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12, 'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
mod = 1000000007
inf = float('inf')
vow = ['a', 'e', 'i', 'o', 'u']
(dx, dy) = ([-1, 1, 0, 0], [0, 0, 1, -1])

def getKey(item):
	return item[1]

def sort2(l):
	return sorted(l, key=getKey)

def d2(n, m, num):
	return [[num for x in range(m)] for y in range(n)]

def isPowerOfTwo(x):
	return x and (not x & x - 1)

def decimalToBinary(n):
	return bin(n).replace('0b', '')

def ntl(n):
	return [int(i) for i in str(n)]

def powerMod(x, y, p):
	res = 1
	x %= p
	while y > 0:
		if y & 1:
			res = res * x % p
		y = y >> 1
		x = x * x % p
	return res

def gcd(x, y):
	while y:
		(x, y) = (y, x % y)
	return x

def isPrime(n):
	if n <= 1:
		return False
	if n <= 3:
		return True
	if n % 2 == 0 or n % 3 == 0:
		return False
	i = 5
	while i * i <= n:
		if n % i == 0 or n % (i + 2) == 0:
			return False
		i = i + 6
	return True

def read():
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')

def main():
	for _ in range(ii()):
		s = si()
		f = s.count('0')
		a = 0
		g = 0
		for i in s:
			a += int(i)
			if int(i) % 2 == 0 and int(i) != 0:
				g = 1
		if (f > 1 or g == 1) and a % 3 == 0 and (f >= 1):
			print('red')
		else:
			print('cyan')
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')

def print(*args, **kwargs):
	(sep, file) = (kwargs.pop('sep', ' '), kwargs.pop('file', sys.stdout))
	at_start = True
	for x in args:
		if not at_start:
			file.write(sep)
		file.write(str(x))
		at_start = False
	file.write(kwargs.pop('end', '\n'))
	if kwargs.pop('flush', False):
		file.flush()
if sys.version_info[0] < 3:
	(sys.stdin, sys.stdout) = (FastIO(sys.stdin), FastIO(sys.stdout))
else:
	(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
main()


t = int(input())
while t:
	inp = input()
	cnt = 0
	flg = 0
	sum = 0
	if '0' not in inp:
		print('cyan')
	else:
		for dig in inp:
			if dig in ['2', '4', '6', '8']:
				flg = 1
			if dig == '0':
				cnt = cnt + 1
			sum = sum + int(dig)
		if sum % 3 == 0 and (flg or cnt > 1):
			print('red')
		else:
			print('cyan')
	t = t - 1


n = int(input())
for i in range(n):
	s = input()
	zero = sm = en = 0
	for i in s:
		if int(i) % 2 == 0:
			en += 1
		if i == '0':
			zero += 1
		sm += int(i)
	if sm % 3 == 0 and en > 1 and (zero >= 1):
		print('red')
	else:
		print('cyan')


def Sum(x):
	n = int(x)
	n = str(n)
	count = 0
	for i in n:
		count += int(i)
	return count
N = int(input())
for i in range(N):
	x = input()
	if '0' in x and Sum(x) % 3 == 0:
		if x.count('0') > 1:
			print('red')
			continue
		else:
			c = 0
			for i in x:
				if int(i) % 2 == 0 and i != '0':
					print('red')
					c += 1
					break
			if c == 0:
				print('cyan')
			continue
	else:
		print('cyan')


y = [input() for x in range(int(input()))]
for item in y:
	sum_digits = sum((int(digit) for digit in str(item)))
	zeros = '0' in str(item)
	two = sum([int(digit) % 2 == 0 for digit in item])
	if zeros and sum_digits % 3 == 0 and (two > 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	s = ''
	o = 0
	summ = 0
	flag = 0
	s = input()
	o = s.count('0')
	if o == 0:
		print('cyan')
		continue
	elif s.count('0') == len(s):
		print('red')
		continue
	else:
		for i in range(len(s)):
			summ += int(s[i])
			if int(s[i]) % 2 == 0 and int(s[i]) != 0:
				flag = 1
		if summ % 3 == 0 and (flag == 1 or o >= 2):
			print('red')
		else:
			print('cyan')


def play(str):
	hasZero = False
	hasEven = False
	Div3 = False
	sum = 0
	for c in str:
		sum += int(c)
		if c == '0' and (not hasZero):
			hasZero = True
			continue
		if int(c) % 2 == 0:
			hasEven = True
	if hasZero and sum % 3 == 0 and hasEven:
		return 'red'
	return 'cyan'

def main():
	q = list(map(int, input().split()))[0]
	while q > 0:
		print(play(input()))
		q -= 1
main()


for _ in range(int(input())):
	li = list(map(int, str(input())))
	if 0 in li:
		c = li.index(0)
		li.pop(c)
		if sum(li) % 3 == 0:
			flag = 0
			for i in range(len(li)):
				if li[i] % 2 == 0:
					flag = 1
					break
			if flag == 1:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


from math import *
t = int(input())
a = [2, 4, 6, 8, 0]
b = [0]
for _ in range(t):
	n = [int(x) for x in list(input())]
	k = len([i for i in n if i in a])
	m = len([i for i in n if i in b])
	if sum(n) % 3 == 0 and k > 1 and (m > 0):
		print('red')
	else:
		print('cyan')


n = int(input())
while n > 0:
	n -= 1
	t = 0
	x = 0
	y = 0
	q = input()
	for c in q:
		cc = int(c)
		t += cc
		if cc == 0:
			x += 1
		elif cc % 2 == 0:
			y = 1
	if t % 3 != 0:
		print('cyan')
	elif x == 0:
		print('cyan')
	elif x > 1 or (x == 1 and y == 1):
		print('red')
	else:
		print('cyan')


t = int(input())
while t > 0:
	s = input()
	(sum, even, zero) = (0, 0, 0)
	for ch in s:
		sum += int(ch)
		if int(ch) % 2 == 0 and ch != '0':
			even += 1
		if ch == '0':
			zero += 1
	if sum % 3 == 0 and zero > 0 and (even > 0):
		print('red')
	elif sum % 3 == 0 and zero > 1:
		print('red')
	else:
		print('cyan')
	t -= 1


for _ in range(int(input())):
	a = str(input())
	b = a.count('0')
	n = int(a)
	tot = 0
	while n > 0:
		dig = n % 10
		tot = tot + dig
		n = n // 10
	if tot == 0:
		print('red')
	elif b > 0:
		if a.count('2') > 0 or a.count('4') > 0 or a.count('6') > 0 or (a.count('8') > 0) or (a.count('0') > 1):
			if tot % 3 == 0:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


a = int(input())
for _ in range(a):
	x = list(map(int, input()))
	(sum1, p) = (0, 1)
	for i in x[:]:
		sum1 += int(i)
	if sum1 % 3 == 0 and 0 in x:
		x.remove(0)
		for i in x:
			if int(i) % 2 == 0:
				p = 0
				print('red')
				break
	if p:
		print('cyan')


n = int(input())
for _ in range(n):
	num = input()
	digitSum = 0
	evenNumber = 0
	zeros = 0
	for i in range(len(num)):
		digit = int(num[i])
		digitSum += digit
		if digit % 2 == 0:
			evenNumber += 1
		if digit == 0:
			zeros += 1
	if digitSum % 3 == 0 and evenNumber > 1 and (zeros > 0):
		print('red')
	else:
		print('cyan')


n = int(input())
result = []
for j in range(n):
	a = input()
	sume = 0
	flag = False
	noe = 0
	for i in a:
		if i == '0':
			flag = True
		if int(i) % 2 == 0:
			noe += 1
		sume += int(i)
	if flag == True and noe > 1 and (sume % 3 == 0):
		result.append('red')
	else:
		result.append('cyan')
for i in result:
	print(i)


from sys import stdin
for t in range(int(stdin.readline())):
	z = stdin.readline().rstrip()
	a = list(map(int, list(z)))
	has_0 = False
	even = 0
	for i in a:
		if i == 0:
			has_0 = True
		if i % 2 == 0:
			even += 1
	s = sum(a)
	if s % 3 == 0 and has_0 and (even > 1):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	s = list(map(int, input()))
	p = 0
	if 0 in s:
		s.remove(0)
		if sum(s) % 3 == 0:
			if 0 in s or 2 in s or 4 in s or (6 in s) or (8 in s):
				p = 1
	if p == 1:
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	y = input()
	zero_cnt = y.count('0')
	even_cnt = y.count('0') + y.count('2') + y.count('4') + y.count('6') + y.count('8')
	digit_sum = sum(map(int, list(y)))
	if zero_cnt == 0:
		print('cyan')
	elif even_cnt <= 1:
		print('cyan')
	elif digit_sum % 3 != 0:
		print('cyan')
	else:
		print('red')


from sys import stdin
t = int(stdin.readline())
for _ in range(t):
	s = stdin.readline()[:-1]
	a = sum(map(int, s))
	if a % 3 == 0 and '0' in s and (s.count('2') + s.count('0') + s.count('4') + s.count('6') + s.count('8') >= 2):
		print('red')
	else:
		print('cyan')


from bisect import *
from collections import *
from itertools import *
import functools
import sys
import math
from decimal import *
from copy import *
from heapq import *
from fractions import *
getcontext().prec = 30
MAX = sys.maxsize
MAXN = 1000010
MOD = 10 ** 9 + 7
spf = [i for i in range(MAXN)]

def sieve():
	for i in range(2, MAXN, 2):
		spf[i] = 2
	for i in range(3, int(MAXN ** 0.5) + 1):
		if spf[i] == i:
			for j in range(i * i, MAXN, i):
				if spf[j] == j:
					spf[j] = i

def fib(n, m):
	if n == 0:
		return [0, 1]
	else:
		(a, b) = fib(n // 2)
		c = a % m * (b % m * 2 - a % m) % m
		d = a % m * (a % m) % m + b % m * b % m % m
		if n % 2 == 0:
			return [c, d]
		else:
			return [d, c + d]

def charIN(x=' '):
	return sys.stdin.readline().strip().split(x)

def arrIN(x=' '):
	return list(map(int, sys.stdin.readline().strip().split(x)))

def ncr(n, r):
	num = den = 1
	for i in range(r):
		num = num * (n - i) % MOD
		den = den * (i + 1) % MOD
	return num * pow(den, MOD - 2, MOD) % MOD

def flush():
	return sys.stdout.flush()
for _ in range(int(input())):
	s = [i for i in input()]
	z = s.count('0')
	e = 0
	if z == 0:
		print('cyan')
	else:
		s.remove('0')
		e = 0
		f = 0
		for i in s:
			if int(i) % 2 == 0:
				e = 1
				break
		if sum((int(i) for i in s)) % 3 == 0:
			f = 1
		if e & f:
			print('red')
		else:
			print('cyan')


t = int(input())
for i in range(t):
	s = input()
	k = 0
	f = 0
	p = 0
	for j in s:
		k += int(j)
		if int(j) == 0:
			f = 1
		if int(j) % 2 == 0:
			p += 1
	if f == 0:
		print('cyan')
	elif k % 3 != 0:
		print('cyan')
	elif p < 2:
		print('cyan')
	else:
		print('red')


for __ in range(int(input())):
	n = list(input())
	num = 0
	for elem in n:
		num += int(elem)
	if '0' in n and num % 3 == 0 and ('2' in n or '4' in n or '6' in n or ('8' in n) or (n.count('0') >= 2)):
		print('red')
	else:
		print('cyan')


def sumi(s):
	p = 0
	for i in s:
		p += int(i)
	return p

def isvalid(s):
	for i in s:
		if i == '0':
			return 1
	return 0

def even(s):
	count = 0
	for i in s:
		if int(i) % 2 == 0:
			count += 1
	return count
n = int(input())
for i in range(n):
	s = input()
	if isvalid(s) and sumi(s) % 3 == 0 and (even(s) > 1):
		print('red')
	else:
		print('cyan')


from collections import Counter
t = int(input())
for i in range(t):
	a = input()
	arr = [int(c) for c in a]
	c = Counter(arr)
	if c[0] == 0:
		print('cyan')
	else:
		flag = 1
		for k in range(0, 25):
			p = 4 * k
			m = p // 10
			n = p % 10
			if m == 0 and n == 0:
				if c[m] >= 2:
					flag = 0
					break
			elif min(c[m], c[n]) >= 1:
				flag = 0
				break
		if sum(arr) % 3 == 0 and flag == 0:
			print('red')
		else:
			print('cyan')


from collections import Counter
for _ in range(1):
	n = int(input())
	for i in range(n):
		s = [int(c) for c in input()]
		su = sum(s)
		b = False
		for dig in s:
			if dig > 0 and dig % 2 == 0:
				b = True
		if su % 3 == 0 and s.count(0) > 0 and (b or s.count(0) > 1):
			print('red')
		else:
			print('cyan')


def solve(arr):
	n = len(arr)
	for i in range(n):
		arr[i] = int(arr[i])
	arr = sorted(arr)
	if arr[0] != 0:
		return 'cyan'
	elif sum(arr) == 0:
		return 'red'
	if sum(arr) % 3 == 0:
		for i in range(1, n):
			val = arr[i]
			if val == 0 or val == 2 or val == 4 or (val == 6) or (val == 8):
				return 'red'
	return 'cyan'
t = int(input())
for _ in range(t):
	n = list(input())
	print(solve(n))


t = int(input())
while t > 0:
	t -= 1
	n = list(input())
	c = 0
	f = 0
	ff = 0
	for i in n:
		if int(i) == 0 and ff == 0:
			ff = 1
		elif int(i) % 2 == 0:
			f = 1
		c += int(i)
	if not c % 3 and f and ff:
		print('red')
	else:
		print('cyan')


t = int(input())
for x in range(t):
	s = input()
	ans = 0
	f = 0
	fl = 0
	for i in s:
		q = int(i)
		if i == '0':
			f += 1
		elif q % 2 == 0:
			fl = 1
		ans += q
	if ans % 3 == 0 and f and fl or ans == 0 or (ans % 3 == 0 and f > 1):
		print('red')
	else:
		print('cyan')


from collections import defaultdict, deque
import sys, heapq, bisect, math, itertools, string, queue, copy, time
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
mod = 10 ** 9 + 7
eps = 10 ** (-7)

def inp():
	return int(sys.stdin.readline())

def inpl():
	return list(map(int, sys.stdin.readline().split()))

def inpl_str():
	return list(sys.stdin.readline().split())
for _ in range(inp()):
	aa = list(map(int, list(input())))
	if sum(aa) == 0:
		print('red')
	elif sum(aa) % 3 != 0 or 0 not in aa:
		print('cyan')
	elif aa.count(0) >= 2:
		print('red')
	elif 2 in aa or 4 in aa or 6 in aa or (8 in aa):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	s = str(input())
	count = 0
	for j in range(len(s)):
		count += int(s[j])
	a = False
	if s.count('0') > 1 or s.find('2') > -1 or s.find('4') > -1 or (s.find('6') > -1) or (s.find('8') > -1):
		a = True
	if count % 3 == 0 and s.find('0') > -1 and a:
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	nums = list(map(int, input()))
	if nums.count(0) and sum(nums) % 3 == 0:
		nums.remove(0)
		for j in range(0, 10, 2):
			if nums.count(j):
				print('red')
				break
		else:
			print('cyan')
	else:
		print('cyan')


import math
from collections import defaultdict, Counter, deque
INF = float('inf')

def gcd(a, b):
	while b:
		(a, b) = (b, a % b)
	return a

def primeFactor(n):
	if n % 2 == 0:
		return 2
	i = 3
	while i ** 2 <= n:
		if n % i == 0:
			return i
		i += 1
	return n

def main():
	n = input()
	if n.count('0') == len(n):
		print('red')
	elif n.count('0') >= 1:
		s = 0
		even = 0
		for i in range(len(n)):
			s += int(n[i])
			if int(n[i]) % 2 == 0:
				even += 1
		if s % 3 == 0 and even > 1:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')
t = int(input())
for _ in range(t):
	main()


n = int(input())
(s, e, q, w) = (0, 0, 0, 0)
for i in range(n):
	a = input()
	a = '1' + a
	a = int(a)
	while a != 1:
		s += a % 10
		if a % 10 % 2 == 0 and (a % 10 != 0 or (a % 10 == 0 and e == 1)):
			w = 1
		if a % 10 == 0:
			q = 1
			e = 1
		a //= 10
	if s % 3 == 0 and q == 1 and (w == 1) or s == 0:
		print('red')
	else:
		print('cyan')
	(e, q, w, s) = (0, 0, 0, 0)


n = int(input())
for i in range(n):
	a = list(map(int, input()))
	flag0 = 0
	flage = 0
	sumi = 0
	for j in a:
		if flag0 == 1:
			if j == 0:
				flage = 1
		if flag0 == 0:
			if j == 0:
				flag0 = 1
		if flage == 0:
			if j % 2 == 0 and j != 0:
				flage = 1
		sumi = sumi + j
	if flag0 == 0 or flage == 0 or sumi % 3 != 0:
		print('cyan')
	else:
		print('red')


def perm(num):
	zeroes = num.count('0')
	evens = len({'2', '4', '6', '8'}.intersection(num))
	return sum([int(c) for c in num]) % 3 == 0 and zeroes + evens > 1 and zeroes
n = int(input())
numbers = [input() for _ in range(n)]
for num in numbers:
	if perm(num):
		print('red')
	else:
		print('cyan')


for x in range(int(input())):
	n1 = input()
	s = 0
	for y in n1:
		s += int(y)
	t1 = n1.count('8')
	t2 = n1.count('6')
	t3 = n1.count('4')
	t4 = n1.count('2')
	t5 = n1.count('0')
	if (s % 3 == 0 or s == 0) and (t1 >= 1 and t5 >= 1 or (t2 >= 1 and t5 >= 1) or (t3 >= 1 and t5 >= 1) or (t4 >= 1 and t5 >= 1) or (t5 >= 2)):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	n = input()
	if n.count('0') != 0 and sum((int(i) for i in n)) % 3 == 0:
		cnt = 0
		for i in n:
			if int(i) % 2 == 0:
				cnt += 1
		if cnt >= 2:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')


for i in range(int(input())):
	n = input()
	(s, zer, e) = (0, 0, 0)
	for i in n:
		s += int(i)
		if int(i) == 0:
			zer += 1
		elif int(i) % 2 == 0:
			e += 1
	if zer > 1 and s % 3 == 0 or (zer == 1 and s % 3 == 0 and (e > 0)):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	s = input()
	if '0' not in s:
		print('cyan')
	else:
		t = s.find('0')
		p = s[0:t] + s[t + 1:]
		r = 0
		for j in p:
			r += int(j)
		if ('0' in p or '2' in p or '4' in p or ('6' in p) or ('8' in p)) and r % 3 == 0:
			print('red')
		else:
			print('cyan')


for u in range(int(input())):
	x = input()
	s = sum(map(int, x))
	if s % 3 == 0 and '0' in x and (x.count('2') + x.count('0') + x.count('4') + x.count('6') + x.count('8') >= 2):
		print('red')
	else:
		print('cyan')


N = int(input())
for _ in range(N):
	x = input()
	res = 0
	sim = 0
	tem = 0
	for i in x:
		res += int(i)
		if i == '0':
			if sim == 1:
				tem = 1
			sim = 1
		if int(i) % 2 == 0 and i != '0':
			tem = 1
	if sim == 1 and res % 3 == 0 and (tem == 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	ch = False
	nu = False
	cntnu = 0
	sum = 0
	for elem in a:
		if int(elem) % 2 == 0 and elem != '0':
			cntnu += 1
		if elem == '0':
			nu = True
			cntnu += 1
		sum += int(elem)
	if sum % 3 == 0 and nu and (cntnu > 1):
		print('red')
	else:
		print('cyan')


def solve():
	a = list(map(int, list(input())))
	if sum(a) % 3 == 0:
		if a.count(0) >= 1:
			a.remove(0)
			if a.count(0) >= 1:
				return True
			else:
				for i in a:
					if i % 2 == 0:
						return True
				return False
		else:
			return False
	else:
		return False
for _ in range(int(input())):
	if solve():
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	s = input()
	if '0' not in s:
		print('cyan')
	else:
		sum = 0
		e = 0
		for j in s:
			if int(j) != 0:
				sum += int(j)
				if int(j) % 2 == 0:
					e = 1
		z = s.count('0')
		if sum % 3 == 0:
			if e == 1 or z > 1:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')


t = int(input())
while t > 0:
	n = list(map(int, input()))
	if 0 not in n:
		print('cyan')
	else:
		sum = 0
		flag = 0
		for i in n:
			if i != 0 and i % 2 == 0:
				flag = 1
			sum += i
		if sum % 3 == 0:
			if flag == 1:
				print('red')
			elif n.count(0) >= 2:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	t -= 1


number = int(input())
while number != 0:
	temp = input()
	zero = temp
	sum = 0
	for i in temp:
		sum += int(i)
	temp = temp.replace('0', '1', 1)
	if sum % 3 == 0 and (temp.__contains__('0') or temp.__contains__('2') or temp.__contains__('4') or temp.__contains__('6') or temp.__contains__('8')) and zero.__contains__('0'):
		print('red')
	elif int(zero) == 0:
		print('red')
	else:
		print('cyan')
	number -= 1


a = int(input())
while a != 0:
	b = input()
	(p, q, r) = (0, 0, 0)
	for i in range(len(b)):
		if p != 1:
			if b[i] == '0':
				p = 1
				continue
		if int(b[i]) % 2 == 0:
			q = 1
		r += int(b[i])
	if r % 3 == 0 and p == 1 and (q == 1):
		print('red')
	else:
		print('cyan')
	a -= 1


n = int(input())
for i in range(n):
	cz = 0
	ce = 0
	su = 0
	s = input()
	for i in s:
		su += int(i)
		if int(i) == 0:
			cz += 1
		if int(i) % 2 == 0:
			ce += 1
	if len(s) == 1 and cz:
		print('red')
	elif cz and ce > 1 and (su % 3 == 0):
		print('red')
	else:
		print('cyan')


t = int(input())
for i in range(t):
	n = input()
	sum = 0
	zerocount = 0
	even = 0
	ans = 'red'
	li = list(n)
	for i in li:
		sum += int(i)
		if int(i) == 0:
			zerocount += 1
		if int(i) % 2 == 0 and int(i) != 0:
			even += 1
	if sum % 3 != 0 or zerocount == 0:
		ans = 'cyan'
	if zerocount == 1:
		if even == 0:
			ans = 'cyan'
	print(ans)


digit = '2468'
for _ in range(int(input())):
	sum = 0
	a = input()
	for i in range(len(a)):
		sum += int(a[i])
	if sum % 3 == 0 and (a.count('0') > 1 or (('2' in a or '4' in a or '6' in a or ('8' in a)) and '0' in a)):
		print('red')
	else:
		print('cyan')


def getSum(n):
	sum = 0
	while n != 0:
		sum = sum + int(n % 10)
		n = int(n / 10)
	return sum

def program():
	n = str(input())
	if int(n) == 0:
		print('red')
		return 0
	zero = 0
	two = False
	for x in n:
		if int(x) == 0:
			zero = zero + 1
		elif int(x) % 2 == 0:
			two = True
	if zero > 1:
		two = True
	if zero > 0 and two:
		if getSum(int(n) % 3 == 0):
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')
t = int(input())
for i in range(t):
	program()


n = int(input())
for nrwe in range(n):
	q = input()
	s = 0
	for i in q:
		s += int(i)
	if q.count('0') > 0 and s % 3 == 0 and (q.count('0') + q.count('2') + q.count('4') + q.count('6') + q.count('8') > 1):
		print('red')
	else:
		print('cyan')


x = int(input())
import itertools
for _ in range(x):
	d = str(input())
	a = list(map(int, d))
	c = 0
	for x in d:
		if '0' == x:
			c += 1
	if c == len(d):
		print('red')
	elif sum(a) % 3 == 0:
		if '0' in d:
			n = 0
			for x in d:
				if int(x) % 2 == 0:
					n += 1
			if n >= 2:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


t = int(input())
s = []
for njng in range(0, t):
	a = input()
	b = []
	for i in a:
		b.append(i)
	if '0' not in b:
		s.append('cyan')
	else:
		r = b.count('0')
		if r < 2 and '2' not in b and ('4' not in b) and ('6' not in b) and ('8' not in b):
			s.append('cyan')
		else:
			g = 0
			for i in b:
				g += int(i)
			if g % 3 != 0:
				s.append('cyan')
			else:
				s.append('red')
for i in s:
	print(i)


n = int(input())
for i in range(n):
	a = input()
	a = list(a)
	zero = 0
	sm = 0
	check = 0
	for i in a:
		if i == '0':
			zero += 1
		sm += int(i)
		if i != '0' and int(i) % 2 == 0:
			check = 1
	if sm % 3 != 0:
		print('cyan')
	elif zero >= 2:
		print('red')
	elif zero == 0:
		print('cyan')
	elif check == 1:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	y = input()
	zero = 0
	even = 0
	sm = 0
	zero = y.count('0')
	for j in y:
		sm += int(j)
		if int(j) % 2 == 0 and j != '0':
			even = 1
	ans = 0
	if sm == 0:
		ans = 1
	elif zero > 0:
		if zero == 1:
			if even == 1:
				if sm % 3 == 0:
					ans = 1
		elif sm % 3 == 0:
			ans = 1
	if ans:
		print('red')
	else:
		print('cyan')


for _ in [0] * int(input()):
	a = input()
	x = a.count('0')
	s = sum((int(x) for x in a)) % 3 < 1
	v = x > 1 or {*a} & {*'2468'} != set()
	z = x > 0
	print('cryeadn'[s * v * z::2])


n = int(input())
for _ in range(n):
	s = sorted(input())
	if len(s) == 1 and s[0] == '0':
		print('red')
		continue
	elif len(s) == 1 or s[0] != '0':
		print('cyan')
		continue
	s = s[1:]
	if any((c in s for c in '02468')) and sum(map(int, s)) % 3 == 0:
		print('red')
	else:
		print('cyan')


T = int(input())
for i in range(T):
	L = list(input())
	FLAG1 = 0
	FLAG2 = 0
	count = 0
	S = 0
	for i in L:
		i = int(i)
		S = S + i
		if i == 0:
			FLAG1 = 1
			count += 1
		if i % 2 == 0 and i != 0:
			FLAG2 = 1
	if S % 3 == 0 and count > 1:
		print('red')
	elif S % 3 == 0 and count == 1 and (FLAG1 == 1) and (FLAG2 == 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	y = list(map(int, input()))
	if 0 not in y:
		print('cyan')
		continue
	if sum(y) % 3 != 0:
		print('cyan')
		continue
	t = 0
	ans = 'cyan'
	for j in range(len(y)):
		if y[j] % 2 == 0 and y[j] != 0:
			ans = 'red'
			break
		if y[j] == 0:
			if t > 0:
				ans = 'red'
				break
			t += 1
	print(ans)


n = int(input())
for i in range(n):
	s = input()
	a = [int(i) for i in s]
	b = s.count('0')
	if b > 0:
		a.remove(0)
	c = sum((int(i) for i in s))
	d = sum((1 for i in a if i % 2 == 0))
	if b > 0 and c % 3 == 0 and (d > 0):
		print('red')
	else:
		print('cyan')


for i in range(int(input())):
	a = [int(i) for i in list(input())]
	flag0 = 0
	flag3 = 0
	flag2 = 0
	x = 0
	counter = 0
	for i in a:
		if i == 0:
			flag0 = 1
			counter += 1
		if counter > 1:
			if i % 2 == 0:
				flag2 = 1
		if counter == 1 or counter == 0:
			if i % 2 == 0 and i != 0:
				flag2 = 1
		x += i
	if x % 3 == 0:
		flag3 = 1
	if flag2 == 1 and flag0 == 1 and (flag3 == 1):
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	a = input()
	z = a.count('0')
	lis = [int(i) for i in a]
	k = sum(lis)
	ok = False
	for i in lis:
		if i % 2 == 0 and i > 0:
			ok = True
	if k % 3 == 0 and (ok == True and z >= 1 or z > 1):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	a = input()
	sum = 0
	b = False
	c = False
	count = 0
	for j in a:
		val = ord(j) - 48
		sum += val
		if val == 0:
			count += 1
			c = True
		if val != 0 and val % 2 == 0:
			b = True
	if sum == 0:
		print('red')
	elif sum % 3 == 0 and count >= 2:
		print('red')
	elif b == True and sum % 3 == 0 and (c == True):
		print('red')
	else:
		print('cyan')


import math

def f(n):
	sum = 0
	d = {'0': 0, '1': 0, '2': 0, '3': 0, '4': 0, '5': 0, '6': 0, '7': 0, '8': 0, '9': 0}
	for i in range(0, len(n)):
		d[n[i]] += 1
		sum = sum + int(n[i])
	if sum % 3 == 0:
		if d['0'] >= 2:
			return 1
		elif d['0'] == 1:
			if d['2'] >= 1:
				return 1
			elif d['4'] >= 1:
				return 1
			elif d['6'] >= 1:
				return 1
			elif d['8'] >= 1:
				return 1
			else:
				return 0
		else:
			return 0
	return 0
l = []
n = int(input())
for i in range(0, n):
	l.append(input())
for i in range(0, n):
	x = f(l[i])
	if x == 1:
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	S = input()
	T = ''
	s = 0
	cnt = 0
	ccnt = 0
	for i in range(len(S)):
		s += int(S[i])
		if S[i] == '0':
			cnt += 1
		if int(S[i]) % 2 == 0:
			if S[i] != '0' or cnt > 1:
				T = T[:] + S[i]
	if cnt > 0 and s % 3 == 0 and (T != ''):
		print('red')
	else:
		print('cyan')


t = int(input())
for _ in range(t):
	s = input()
	summ = 0
	flag1 = True
	flag2 = True
	for (i, j) in enumerate(s):
		if j == '0':
			flag1 = False
			break
	if flag1:
		print('cyan')
		continue
	s2 = ''
	for (idx, j) in enumerate(s):
		if idx != i:
			s2 += j
	flag2 = True
	for (i, j) in enumerate(s2):
		if int(j) % 2 == 0:
			flag2 = False
	if flag2:
		print('cyan')
		continue
	for j in s2:
		summ += int(j)
	if summ % 3 == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	str = input()
	zero_count = 0
	sum_count = 0
	flag = 0
	for i in str:
		if int(i) == 0:
			zero_count += 1
		sum_count += int(i)
		if i != 0:
			a = i + '0'
		if int(a) % 4 == 0 and i != '0':
			flag = 1
	if zero_count > 0 and sum_count % 3 == 0 and (flag == 1 or zero_count >= 2):
		print('red')
	else:
		print('cyan')


def task():
	k = list(str(input()))
	i = 0
	p = 0
	flag = 0
	sec = 0
	while i < len(k):
		p = int(k[i]) + p
		if int(k[i]) % 2 == 0:
			flag += 1
		if int(k[i]) == 0:
			sec += 1
		i += 1
	if p % 3 == 0 and flag > 1 and (sec > 0):
		print('red')
	elif p == 0:
		print('red')
	else:
		print('cyan')
t = int(input())
loo3 = 0
while loo3 < t:
	task()
	loo3 += 1


def su(a):
	answ = 0
	for char in a:
		answ += int(char)
	return answ

def check(s):
	if su(s) % 3 == 0 and s.count('0') > 0 and (s.count('2') + s.count('4') + s.count('6') + s.count('8') > 0 or s.count('0') >= 2):
		return 'red'
	return 'cyan'
n = int(input())
for t in range(n):
	s = input()
	print(check(s))


for _ in range(int(input())):
	s = input()
	ch = 0
	che = -1
	ch3 = -1
	ch0 = 0
	sn = 0
	for i in s:
		sn += int(i)
		if i != '0':
			y = int(i)
			if y % 2 == 0:
				che = 1
		if i == '0':
			ch0 += 1
	if sn % 3 == 0:
		ch3 = 1
	if ch3 == 1:
		if ch0 > 1:
			print('red')
		elif ch0 == 1:
			if che == 1:
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


import math
from decimal import Decimal
import heapq
from collections import deque

def na():
	n = int(input())
	b = [int(x) for x in input().split()]
	return (n, b)

def nab():
	n = int(input())
	b = [int(x) for x in input().split()]
	c = [int(x) for x in input().split()]
	return (n, b, c)

def dv():
	(n, m) = map(int, input().split())
	return (n, m)

def da():
	(n, m) = map(int, input().split())
	a = list(map(int, input().split()))
	return (n, m, a)

def dva():
	(n, m) = map(int, input().split())
	a = [int(x) for x in input().split()]
	b = [int(x) for x in input().split()]
	return (n, m, b)

def eratosthenes(n):
	sieve = list(range(n + 1))
	for i in sieve:
		if i > 1:
			for j in range(i + i, len(sieve), i):
				sieve[j] = 0
	return sorted(set(sieve))

def lol(lst, k):
	k = k % len(lst)
	ret = [0] * len(lst)
	for i in range(len(lst)):
		if i + k < len(lst) and i + k >= 0:
			ret[i] = lst[i + k]
		if i + k >= len(lst):
			ret[i] = lst[i + k - len(lst)]
		if i + k < 0:
			ret[i] = lst[i + k + len(lst)]
	return ret

def nm():
	n = int(input())
	b = [int(x) for x in input().split()]
	m = int(input())
	c = [int(x) for x in input().split()]
	return (n, b, m, c)

def dvs():
	n = int(input())
	m = int(input())
	return (n, m)

def fact(a, b):
	c = []
	ans = 0
	f = int(math.sqrt(a))
	for i in range(1, f + 1):
		if a % i == 0:
			c.append(i)
	l = len(c)
	for i in range(l):
		c.append(a // c[i])
	for i in range(len(c)):
		if c[i] <= b:
			ans += 1
	if a / f == f and b >= f:
		return ans - 1
	return ans
n = int(input())
for i in range(n):
	s = input()
	chet = '24608'
	f1 = 0
	k0 = 0
	tc = 0
	for j in s:
		tc += int(j)
		if j in chet:
			f1 += 1
		if j == '0':
			k0 += 1
	if f1 == 1 and k0 == 1:
		print('cyan')
		continue
	if tc % 3 == 0 and f1 and k0:
		print('red')
	else:
		print('cyan')


import sys
from collections import defaultdict, deque
import math

def inar():
	return [int(ek) for ek in input().split()]
t = int(input())
for _ in range(t):
	n = input()
	ans = 0
	z = False
	even = 0
	for i in range(len(n)):
		ans += int(n[i])
		if n[i] == '0':
			z = True
		if int(n[i]) % 2 == 0:
			even = even + 1
	if ans % 3 == 0 and even > 1 and z or ans == 0:
		print('red')
	else:
		print('cyan')


for _ in range(int(input())):
	s = list(input())
	c0 = s.count('0')
	c2 = 1
	ssum = 0
	for (i, j) in enumerate(s):
		if j == '0':
			s.pop(i)
			break
	for i in s:
		ssum += int(i)
		if i != '0' and int(i) % 2 == 0:
			c2 = 0
	if c0 > 1:
		c2 = 0
	c3 = ssum % 3
	if c0 and (not c2) and (not c3):
		print('red')
	else:
		print('cyan')


def trunc(A):
	l = len(A)
	for i in range(l):
		if A[i] != '0':
			return A[i:]
	return '0'
for i in range(int(input())):
	x = input()
	l = len(x)
	sum = 0
	if trunc(x) == '0':
		print('red')
	else:
		f = 0
		h = 0
		for y in x:
			z = int(y)
			sum += z
			if z % 2 == 0:
				f += 1
			if z == 0:
				h += 1
		if h >= 1 and sum % 3 == 0 and (f >= 2):
			print('red')
		else:
			print('cyan')


def div2(a):
	if a % 2 == 0:
		return 1
	else:
		return 0

def div3(a):
	sum1 = 0
	for i in a:
		sum1 += int(i)
	if sum1 % 3 == 0:
		return 1
	else:
		return 0
for _ in range(int(input())):
	t = input()
	li = list(str(t))
	if '0' in li:
		for i in range(len(li) - 1):
			if li[i] == '0':
				li.pop(i)
				break
		flag = 0
		for i in li:
			if int(i) % 2 == 0:
				if div3(li):
					flag = 1
		if flag == 0:
			print('cyan')
		else:
			print('red')
	else:
		print('cyan')


from collections import defaultdict
import math
x = int(input())
for _ in range(x):
	n = input()
	s = 0
	zeros = 0
	even = 0
	for i in n:
		s += int(i)
		if i == '0':
			zeros += 1
		if int(i) % 2 == 0:
			even += 1
	if s % 3 != 0:
		print('cyan')
	elif zeros == 0:
		print('cyan')
	elif zeros > 1:
		print('red')
	elif even > 1:
		print('red')
	else:
		print('cyan')


t = int(input())
while t:
	t -= 1
	x = input()
	c1 = 0
	c2 = 0
	c3 = 0
	for i in x:
		c1 += int(i)
		if i == '0':
			c2 += 1
		if int(i) % 2 == 0:
			c3 += 1
	if c1 % 3 == 0 and c2 >= 1 and (c3 >= 2):
		print('red')
	else:
		print('cyan')


n = int(input())
for i in range(n):
	y = input()
	if y.find('0') != -1:
		x = list(map(int, y))
		if sum(x) % 3 == 0:
			if y.find('2') != -1 or y.find('4') != -1 or y.find('6') != -1 or (y.find('8') != -1) or (y.count('0') >= 2):
				print('red')
			else:
				print('cyan')
		else:
			print('cyan')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	e = []
	o = []
	s = input()
	for i in s:
		if int(i) % 2:
			o.append(i)
		else:
			e.append(i)
	e.sort(reverse=1)
	o.sort(reverse=1)
	o += e
	num = int(''.join(o))
	if num % 60 == 0:
		print('red')
	else:
		print('cyan')


n = int(input())
for _ in range(n):
	current = str(input())
	flag = False
	oldlen = len(current)
	current = current.replace('0', '', 1)
	if oldlen == len(current):
		print('cyan')
		continue
	summary = 0
	for i in current:
		digit = int(i)
		summary += digit
		if digit % 2 == 0:
			flag = True
	if summary % 3 == 0 and flag:
		print('red')
	else:
		print('cyan')


import sys, math, queue, collections
MOD = 10 ** 9 + 7
for _ in range(int(input())):
	a = list(map(int, list(input())))
	b = list(filter(lambda x: x % 2 == 0, a))
	print('red' if sum(a) % 3 == 0 and b.count(0) > 0 and (len(b) > 1) else 'cyan')


for _ in range(int(input())):
	s = input()
	if '0' not in s or sum(map(int, s)) % 3 != 0:
		print('cyan')
		continue
	if any((c in s for c in '2468')):
		print('red')
		continue
	if s.count('0') > 1:
		print('red')
	else:
		print('cyan')


import sys
import math
get_string = lambda : sys.stdin.readline().strip()
get_int_list = lambda : list(map(int, sys.stdin.readline().strip().split()))
get_intList_from_str = lambda : list(map(int, list(sys.stdin.readline().strip())))
get_charList_from_str = lambda : list(sys.stdin.readline().strip())
get_char_list = lambda : sys.stdin.readline().strip().split()
get_int = lambda : int(sys.stdin.readline())
pt = lambda x: sys.stdout.write(str(x))
for i in range(get_int()):
	n = get_string()
	if '0' in n:
		n = n.replace('0', '', 1)
		divi_3 = False
		if sum(list(map(int, list(n)))) % 3 == 0:
			divi_3 = True
		even = ['2', '4', '6', '8', '0']
		set_num = set(n)
		divi_2 = False
		for i in even:
			if i in set_num:
				divi_2 = True
				break
		if divi_2 and divi_3:
			print('red')
		else:
			print('cyan')
	else:
		print('cyan')