can anyone please help me ?
I dont understand why its failed
package com.codegym.task.task04.task0416;
/*
Crossing the road blindly
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner keyboard = new Scanner(System.in);
double x = keyboard.nextDouble();
if(x%5 < 3){
System.out.println("green");
} else if (x%5>=3 && x<4){
System.out.println("yellow");
}else{
System.out.println("red");
}
//write your code here
}
}