By Kay Akashi
The colour of traffic light in the town of Leveen changes periodically in a following fashion: green → yellow → red → yellow → green → yellow → red → yellow → green → …. The colour turns green at 00:00:00 of each day, and we know that green light lasts for seconds, yellow light lasts for seconds, and red light lasts for seconds.
Now, seconds have passed since 00:00:00. Your task is to tell which colour is shown in the traffic light at the time of .
If is exactly the time when the light turns one from another, output the colour AFTER the change.
Note that, no matter what colour is shown at 23:59:59 in the previous day, the colour turns green at 00:00:00.
, .
The first line of input contains three integers, , , . The second line of input contains one integer, .
Answer the colour from three choices: "green", "yellow", "red".
10 2 10
70
yellow
48 12 41
0
green
Regardless of the colour shown in the last minute of previous day, at the colour turns green in the very beginning of the day.