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
#include<iostream>
#include<cstdio>

using namespace std;

int n, suma, np = 1000000001;

int main(){
	scanf("%d", &n);
	for(int i = 0 ; i < n; i++){
		int a;
		scanf("%d", &a);
		if(a < np && a % 2 == 1){np = a;}
		suma += a;
	}
	if(n == 1 && suma % 2 == 1){
		printf("NIESTETY");
	}
	else if(suma % 2 == 0){
		printf("%d", suma);
	}
	else{
		printf("%d", suma - np);
	}
	return 0;
}