J. Construct Permutation
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

Given an array $$$a$$$ of length $$$n$$$ and constants $$$A$$$, $$$B$$$.

Let's call an array good if for each $$$i$$$ $$$(1 \le i \lt n)$$$, at least one of the conditions $$$a_i + a_{i + 1} = A$$$ or $$$a_i - a_{i + 1} = B$$$ holds true.

Construct a good permutation of the array $$$a$$$.

Input

The first line contains one integer $$$T$$$ $$$(1 \le t \le 2 \times 10^5)$$$ — the number of test cases.

The first line of each test case contains one integer $$$n$$$ $$$(1 \le n \le 2 \times 10^5)$$$ — length of the array.

The second line contains two integers $$$A, B$$$ $$$(-10^9 \le A, B \le 10^9)$$$ — constants.

The third line contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ $$$(-10^9 \le a_i \le 10^9)$$$ — elements of the array.

It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$2 \times 10^5$$$.

Output

For each test case, output "NO" if it is not possible to construct such a permutation.

Otherwise, output in the first line "YES", and then provide the required permutation.

In the only line output $$$n$$$ integers $$$b_1, b_2, \ldots, b_n$$$ — a good permutation of $$$a$$$.

Example
Input
4
10
1 2
-1 2 0 1 -1 2 -1 -3 4 2
5
0 0
2 2 -2 -2 2
5
0 -4
2 2 -2 -2 2
5
4 0
2 2 -2 -2 2
Output
YES
4 2 -1 2 -1 2 0 1 -1 -3
YES
2 -2 -2 2 2
YES
2 -2 2 -2 2
NO