Console input 2.5. Console output green.
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
double m = sc.nextDouble();
int min = (int) Math.floor(m);
if ( min % 5 == 0 ) {
System.out.println("red");
} else if ( min + 1 % 5 == 0 ) {
System.out.println("yellow");
} else {
System.out.println("green");
}
}
}