Omar and Ahmed are playing with an infinite deck of cards. Each card has a single-digit number written on it (ranging from $$$1$$$ to $$$9$$$).
Ahmed teaches Omar a new trick. Here are the steps:
Given the remaining cards in the deck (after all transformations) except the hidden card, can you determine the hidden one?
It is guaranteed that the answer always exists
The order of the number is not important, for example the $$$[1$$$ $$$8$$$ $$$1$$$ $$$5$$$ $$$6$$$ $$$2$$$ $$$1]$$$ and $$$[1$$$ $$$8$$$ $$$1$$$ $$$5$$$ $$$6$$$ $$$1$$$ $$$2]$$$ give the same answer which is $$$3$$$
The first line contains one integer number $$$(1 \le T \le 10^4)$$$, the number of test cases.
The first line of each test case contains $$$2$$$ integers $$$n, m$$$ $$$(2 \le n \le 33, 2 \le m \le 10^6)$$$.
The second line contains $$$m$$$ integers $$$a_1,a_2,..,a_m (1 \le a_i \le 9)$$$.
An additional constraint on the input: the sum of $$$m$$$ over all test cases doesn't exceed $$$10^6$$$.
It is guaranteed that the set of cards is always a valid set
For each test case, print a single integer — The card Omar has hidden.
12 71 8 1 5 6 2 1
3
In the first test case:
| Name |
|---|


