please any help or comment will be much appreciated. thank you
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.util.Scanner;
public class Solution{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double t = sc.nextDouble();
if((t%8>=0.0 && t%8<=2.9)){
System.out.println("green");
}
else if((t%8>=3.0 && t%8<=3.9)){
System.out.println("yellow");
}
else if((t%8>=4.0 && t%8<=4.9)){
System.out.println("red");
}
else{
System.out.println("green");
}
}
}