1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.Scanner;


public class kie {

	public static void main(String[] args) {
		Scanner wejscie = new Scanner(System.in);
		int n = wejscie.nextInt();
		long suma=0;
		int min = 1001;
		for(int i=0; i<n; i++)
		{
			int x=wejscie.nextInt();
			suma+=x;
			if(x<min && x%2==1)min=x;
		}
		wejscie.close();
		if(suma%2==1 && n==1)
			{
			System.out.println("NIESTETY");
			return;
			}
		if(suma%2==0)System.out.println(suma);
		else System.out.println(suma-min);
	}

}