i have copied the exact code and it runs perfectly fine in IntelliJ, but here it is not accepting the solution, can anyone suggest what the problem might be
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 br = new BufferedReader(new InputStreamReader(System.in));
String sTime = br.readLine();
int t = Integer.parseInt(sTime);
if (t % 5 == 1 || t % 5 == 2 || t % 5 == 3)
System.out.println("green");
else if (t % 5 == 4)
System.out.println("yellow");
else
System.out.println("red");
}
}