My code is working correctly, but the requirements are not checked.
Can you please check what is wrong in my code?
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
import java.lang.Math;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
double t = Double.valueOf(reader.readLine());
double roundN = Math.floor(t);
double lightTime = roundN % 3;
if (lightTime == 0){
System.out.println("yellow");
}else if (lightTime == 1){
System.out.println("red");
}else{
System.out.println("green");
}
}
}