Candies
For the children's party, the organizers ordered N identical sets of candies. However, due to a mix-up, they received 2N sets instead, with varying numbers of candies in each set.
Repacking the sets is not an option, as it would damage the packaging. Therefore, the goal is to pair the sets into N pairs, each with an equal total number of candies. Each child will receive two beautifully wrapped gifts. Determine if this arrangement is possible.
Input
The first line contains a single natural number N (1 ≤ N ≤ 100000), which represents the number of ordered gifts.
The following 2N lines each contain one natural number, indicating the number of candies in each delivered package. These numbers range from 1 to 100000.
Output
Print YES on a single line if it is possible to divide the packages into pairs such that each pair has the same total number of candies. Otherwise, print NO.