what is wrong in this?
i m getting right while running but it fails all condition
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
int t = Integer.parseInt(s);
int b= (t%5);
if (b>=0 && b<1){
System.out.println("red");
}
else if(b>=1 && b<3){
System.out.println("green");
}
else if(b>=4 && b<5){
System.out.println("yellow");
}
else{
System.out.println("invalid");
}
}
}