1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#include<cstdio>
main()
{
  int n,a,s=0,m=1000000001;
  scanf("%d",&n);
  while(n--)
  {
    scanf("%d",&a);
    if(a%2 && a<m)
      m=a;
    s+=a;
  }
  if(s%2==0)
    printf("%d",s);
  else if(s==m)
    printf("NIESTETY");
  else
    printf("%d",s-m);
  return 0;
}