You are given n positive integers. Decide whether they can be divided into two groups so that every value goes into exactly one group and the two groups have equal total sums.
Input format
Line 1: an integer n, the count of values.
Line 2: n space-separated positive integers.
Output format
A single line: YES if such a split exists, otherwise NO.
Constraints
- 1 <= n <= 200
- 1 <= each value <= 1000