Subset Sum
Is there a subset of the positive integers whose sum is exactly ? Print Yes or No.
Input
, then positive integers, then .
Output
Yes or No.
Constraints
, ,
Sample 1
Input
6 3 34 4 12 5 2 9
Output
Yes
Sample 2
Input
6 3 34 4 12 5 2 30
Output
No