import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Дядя, вводи минутки =");
//String aa = reader.readLine();
// int min = Integer.parseInt(aa);
double min = Double.parseDouble(in.readLine());
int green=3;
int yellow=1;
int red=1;
int colour =0;
String svetofor="";
while (colour <= min) {
if (colour <= min) {colour=colour+ 3;
svetofor="зелёный";}
if (colour <= min) {colour=colour+ 1;
svetofor="желтый";}
if (colour <= min){ colour=colour+ 1;
svetofor="красный";}
}
System.out.println(svetofor);
}
}
package com.javarush.task.task04.task0416;
/*
Переходим дорогу вслепую
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Дядя, вводи минутки =");
//String aa = reader.readLine();
// int min = Integer.parseInt(aa);
double min = Double.parseDouble(in.readLine());
int green=3;
int yellow=1;
int red=1;
int colour =0;
String svetofor="";
while (colour <= min) {
if (colour <= min) {colour=colour+ 3;
svetofor="зелёный";}
if (colour <= min) {colour=colour+ 1;
svetofor="желтый";}
if (colour <= min){ colour=colour+ 1;
svetofor="красный";}
}
System.out.println(svetofor);
}
}