cant solve HELP, but the code works!
Is it solution to calculate like real time = 60 ??
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 to = new BufferedReader(new InputStreamReader(System.in));
double trik = Double.parseDouble(to.readLine());
if(trik % 5.0 >= 0.001 && trik % 5.0 < 4)
{ System.out.println("green"); }
else if(trik % 5.0 >= 4 && trik % 5.0 < 5)
{ System.out.println("yellow"); }
else
{ System.out.println("red"); }
}
}