Ladder

아직 제출이 없습니다시간 제한2초메모리 제한64 MB

문제

You have got nn sticks of lengths d_1,d_2,,d_nd\_1, d\_2, \ldots, d\_n. To build a ladder, you need k+2k+2 sticks: two sticks of length xx and kk sticks of length yy. You may shorten the sticks you already have, but you cannot divide one stick into two. Can you make a ladder?

입력

The first line of the input contains a single integer zz, the number of test cases. The descriptions of the test cases follow.

Each test case consists of four integers nn, kk, xx, yy (1n1051 \leq n \leq 10^5, 0k1050 \leq k \leq 10^5, 1x,y1091 \leq x, y \leq 10^9) followed by nn integers d_1d\_1, d_2d\_2, \ldots, d_nd\_n (1d_i1091 \leq d\_i \leq 10^9).

출력

For each test case, output a single line containing a single word "YES" if making a ladder is possible, or "NO" otherwise.