package com.codegym.task.task04.task0416;

/*
Crossing the road blindly

*/

import java.io.*;


public class Solution {
    public static void main(String[] args) throws Exception {

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        double minsInHour = Double.parseDouble(reader.readLine());
        //DecimalFormat format = new DecimalFormat("0.#");
        //System.out.println(format.format(minsInHour));
        minsInHour = minsInHour % 5;

        if (minsInHour >= 0 && minsInHour <= 2.9) {
            //System.out.println("This is the green: " + minsInHour + " Mins");
            System.out.println("green");
        }

        if (minsInHour >= 3 && minsInHour <= 3.9) {
            //System.out.println("This is yellow: " + minsInHour + " Mins");
            System.out.println("yellow");
        }

        if (minsInHour >= 4 && minsInHour <= 4.9) {
            //System.out.println("This is red: " + minsInHour + " Mins");
            System.out.println("red");
        }


    }
}