?
package com.javarush.task.pro.task04.task0408;
import java.util.Scanner;
/*
Максимум из введенных чисел
*/
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int max = Integer.MIN_VALUE;
while (sc.hasNextInt()) {
int x = sc.nextInt();
if (x % 2 == 0 && x > max) {
x = max;
}
}
System.out.println(max);
}
}