public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); double x = (sc.nextDouble())%10; if (x==3 | x==8){ System.out.println("жёлтый");} else if(x==4 | x==9){ System.out.println("красный");} else { System.out.println("зелёный");