You are given K distinct nonnegative integers A_1,A_2,⋯,A_K. Count the number of sequences of N nonnegative integers a_1,a_2,⋯,a_N that satisfies all of the following conditions, modulo 2.
Note that there are T tests in one input file.
Input is given from Standard Input in the following format:
T
Description of the 1-st test
Description of the 2-nd test
⋮
Description of the T-th test
The description of each test is in the following format:
N S K
A_1 A_2 ⋯ A_K
For each test, print the count modulo 2.
In the first test, there are a total of 51 sequences that satisfy conditions.