c语言digits 100 是什么意思,有哪位大佬帮我看看这道题具体是让干啥的么?

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

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 nn of them how much effort they needed to reach red.

"Oh, I just spent xixi hours solving problems", said the ii-th of them.

Bob wants to train his math skills, so for each answer he wrote down the number of minutes (60⋅xi60⋅xi), thanked the grandmasters and went home. Bob could write numbers with leading zeroes — for example, if some grandmaster answered that he had spent 22 hours, Bob could write 000120000120 instead of 120120.

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 nn numbers, denoted y1y1, ..., ynyn.

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

Input

The first line contains a single integer nn (1≤n≤4181≤n≤418) — the number of grandmasters Bob asked.

Then nn lines follow, the ii-th of which contains a single integer yiyi — the number that Alice wrote down.

Each of these numbers has between 22 and 100100 digits '0' through '9'. They can contain leading zeroes.

Output

Output nn lines.

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

Example

input

6

603

006

205

228

1053

0000000000000000000000000000000000000000000000

output

red

red

cyan

cyan

cyan

red

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值