package com.javarush.task.task04.task0416; /* Переходим дорогу вслепую */ import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) throws Exception { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String s = reader.readLine(); float i = Float.parseFloat(s); float c = i % 5; //System.out.println(c); if (0 <= c && c < 3) { System.out.println("зелёный"); } if (3 <= c && c < 4) { System.out.println("жёлтый"); } if (4 <= c && c < 5) { System.out.println("красный"); } //напишите тут ваш код } }