You are given $$$N$$$ of sticks. The length of the $$$i$$$-th stick is denoted by $$$L_i$$$. You have to arrange each of these sticks horizontally on a line of cells in the range $$$[1, \infty ]$$$. It can happen that two or more sticks overlap with each other, so a cell can be occupied by more than one stick.
You have to answer $$$Q$$$ queries.
For every query, you are given two integers $$$R$$$ and $$$K$$$, you have to answer with YES if and only if there exists an arrangement of the sticks such that all the below conditions are satisfied:
Else answer with NO.
Constraints
In all inputs,
For each testcase, print either "YES" or "NO" (without quotes). Note that the answer is case-insensitive.
2 5 3 1 2 3 4 5 15 15 7 2 8 6 3 2 1 3 1 4 0 5 3
YES YES NO NO YES
Below is a possible arrangement for the second query of the second test case.