Module: The backpack problem


Problem

5 /6


Weights

Problem

Given a set of weights 1, …, mN. Can they be divided into two scales so that they are in balance?
 
Input:
- the first line contains a natural number N, not exceeding 100;
- the second line contains N natural numbers mi not exceeding 100.
 
Output: output YES or NO.
 

 

Examples
# Input Output
1 1
17
NO
2 2
19 19
YES