点击打开链接
A. Wet Shark and Odd and Even
time limit per test
memory limit per test
input
output
n integers. Using any of these integers no more than once, Wet Shark wants to get maximum possible even (divisible by 2) sum. Please, calculate this value for Wet Shark.
n integers, the sum is an even integer 0.
Input
n (1 ≤ n ≤ 100 000). The next line contains n space separated integers given to Wet Shark. Each of these integers is in range from 1 to 109, inclusive.
Output
Print the maximum possible even sum that can be obtained if we use some of the given integers.
Examples
input
3 1 2 3
output
6
input
output
3999999996
Note
6.
999 999 999.
求最大和(偶数)。