You are given an array $$$a$$$ consisting of $$$n$$$ integers, as well as a parameter $$$k$$$ and an integer set $$$M=\{p, q\}$$$.
You can perform the following operation on $$$a$$$ an arbitrary number of times (possibly zero):
You have to find the minimum possible value of $$$\sum \limits_{i=1}^n a_i$$$ after all operations.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The first line of each test case contains four integers $$$n$$$, $$$k$$$, $$$p$$$, and $$$q$$$ ($$$1\le k\le n\le 10^5$$$, $$$1\le p \lt q\le 10^9$$$) — the length of $$$a$$$, the parameter, and the elements of $$$M$$$.
The second line contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ ($$$1\le a_i\le 10^9$$$) — the elements of $$$a$$$.
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^5$$$.
For each test case, output a single integer — the minimum possible value of $$$\sum \limits_{i=1}^n a_i$$$ after all operations.
61 1 3 420263 2 10 2031 41 594 3 3 41 2 3 46 4 9 2018 27 180 9 45 997 4 3 56 7 14 12 100 78 49 4 244 3539982 4435 3998 2443 5399 8244 3539 9824 4353
111304569
In the second test case, a possible way to obtain $$$\sum \limits_{i=1}^n a_i=11$$$ is to apply the following operation to $$$a$$$:
In the third test case, a possible way to obtain $$$\sum \limits_{i=1}^n a_i=3$$$ is to apply the following operations to $$$a$$$:
| Name |
|---|


