A judge has scorecards laid out with their fronts showing. Card has score on its front and on its back. The total score is the sum of the visible values.
The judge may turn over any selection of cards, but an even number of cards must finish with their backs showing. Zero is even, so leaving every card alone is allowed.
What is the largest possible total score?
The first line contains .
The next lines each contain and for one card.
Print the maximum total score.
In Sample 1, show the backs of cards and . The score is .
In Sample 2, show the backs of cards and . The score is . Choosing each larger value independently would leave an odd number of backs showing.
| Sample Input 1 | Sample Output 1 |
|---|---|
3 3 8 6 5 4 4 |
18 |
| Sample Input 2 | Sample Output 2 |
|---|---|
3 1 5 4 3 7 6 |
15 |