Given the integer N.
Next, N numbers are fed to the program input.
It is necessary to print the minimum even number among all N numbers.
Input:
in the first line the number N is entered - the integer (N <= 100)
then there are N numbers, one per line (all numbers are integers not exceeding 10,000 in absolute value)
Among N numbers, there is at least one even number
Output:
output the minimum even number among all N numbers
Примеры
№ |
Входные данные |
Выходные данные |
1 |
5
-2
1
2
3
0 |
-2 |
Запрещенные операторы:min;max;[;sort