using System;
public class Program
{
public static void Main()
int max =0;
int max_number =0;
int number ;
int n;
Console.ReadLine(n);
for (int i = 1; i<n; i++)
Console.ReadLine(number);
temp = counteven (number);
if (max < temp )
max = temp;
max_number=number;
}
Console.WriteLine(max_number);
static int counteven(int x)
int count =0;
while (x>0)
if ((x%10)%2==0)
count+=1;
x=x/10;