package com.codegym.task.task04.task0416;
import java.io.*;
public class Solution
{
public static void main(String[] args) throws Exception
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String input1 = reader.readLine();
double a = Double.parseDouble(input1);
if(a >= 0 && a < 1)
{
System.out.print("green");
}
else if(a % 4 >= 0 && a % 4 < 1)
{
System.out.print("red");
}
else if(++a % 4 >= 0 && a % 4 < 1)
{
System.out.print("yellow");
}
else
{
System.out.print("green");
}
}
}
package com.codegym.task.task04.task0416;
import java.io.*;
public class Solution
{
public static void main(String[] args) throws Exception
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String input1 = reader.readLine();
double a = Double.parseDouble(input1);
if(a >= 0 && a < 1)
{
System.out.print("green");
}
else if(a % 4 >= 0 && a % 4 < 1)
{
System.out.print("red");
}
else if(++a % 4 >= 0 && a % 4 < 1)
{
System.out.print("yellow");
}
else
{
System.out.print("green");
}
}
}