Cant figure this one out
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
Requirements:
1. The program should read a real number from the keyboard.
2. The program should display text on the screen.
3. If the light is green, display: "green"
4. If the light is yellow, display: "yellow"
5. If the light is red, display: "red"
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
String time = buffer.readLine();
double a = Double.parseDouble(time);
double t = a%5.0;
if (t % 5 >= 0 || t % 5 <= 3 || t % 5 == 5){
System.out.println("green");}
else if(t % 5 > 3 && t % 5 <= 4){
System.out.println("yellow");}
else{
System.out.println("red");
}
//write your code here
}
}