Choose a subset of (where can be an empty set), remove from , and add the of to .
Now, Yuki wants to perform several transformations such that becomes . You need to help Yuki find the minimum number of transformations required to make equal to . Since the answer can be very large, you only need to output the answer modulo .
It can be proven that there always exists at least one sequence of operations that can transform into .
: The of a multiset is the smallest non-negative integer that does not appear in the multiset. For example, , , and .
输入格式
This problem contains multiple test cases.
The first line contains a positive integer , representing the number of test cases.
For each test case:
The first line contains two integers .
The second line contains integers .
It is guaranteed that the sum of over all test cases does not exceed .
输出格式
For each test case, output a single line containing an integer representing the minimum number of transformations required to make equal to , modulo .