The Code though longer works in IDEA but still I get errors for the last 3 conditions
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
InputStream input = System.in;
Reader reader = new InputStreamReader(input);
BufferedReader buff = new BufferedReader(reader);
String tube = buff.readLine();
double t = Double.parseDouble(tube);
if ((t >= 0 && t <= 3) || (t >= 6 && t <= 9) || (t >= 12 && t <= 15) || (t >=18 && t <= 21) || (t >= 24 && t <= 27) || (t >= 30 && t <= 33) || (t >= 36 && t <= 39) || (t >= 42 && t <= 45) || (t >= 48 && t <= 51) || (t >= 54 && t <= 57)) {
System.out.println("\"green\"");
}
else if (t == 4 || t == 10 || t == 16 || t == 22 || t == 28 || t == 34 || t == 40 || t == 46 || t == 52 || t == 58) {
System.out.println("\"yellow\"");
}
else {
System.out.println("\"red\"");
}
}
}