package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String input = reader.readLine();
double t = Double.parseDouble(input);
if (t%4 == 0) {
System.out.print("red");
} else if (((t % 4) >= 3.00) && ((t % 4) <= 3.99)) {
System.out.print("yellow");
} else {
System.out.print("green");
}
}
}
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String input = reader.readLine();
double t = Double.parseDouble(input);
if (t%4 == 0) {
System.out.print("red");
} else if (((t % 4) >= 3.00) && ((t % 4) <= 3.99)) {
System.out.print("yellow");
} else {
System.out.print("green");
}
}
}