#P5990. [PA 2015] Kieszonkowe
[PA 2015] Kieszonkowe
Description
Given numbers, select some of them such that the total sum is even.
Maximize this sum.
Input Format
The first line contains a positive integer .
The second line contains positive integers .
Output Format
Output one positive integer, the maximum possible sum. If there is no solution, output NIESTETY.
5
2 4 3 3 3
12
Hint
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号