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
var
  b, i, n : longint;
  ilosc : int64;
  min : integer;
  tak : integer;
      
begin
  ilosc := 0;
  tak := 0;
  min := 1000;
  readln(n);
  for i := 1 to n do
    begin
      read(b);
      if (b / 2 <> trunc(b / 2)) and (n = 1) then tak := 1;
      if b / 2 <> trunc(b / 2) then
	    if b < min then min := b;
      ilosc := ilosc + b;
	end;
  if tak = 1 then
    writeln('NIESTETY')
  else
    if ilosc / 2 <> trunc(ilosc / 2) then
      writeln(ilosc - min)
	else
	  writeln(ilosc);
end.