Sourav has an array A consisting of N integers(1-based indexing), He asks you to perform the following operation M times: for i=2 to n;
Your task is to find the xth element of the array(i.e., A[x]) after performing the above operation M times. As the answer could be large, please output it modulo 10^9+7.
INPUT The First line of input contains an integer T denoting the number of test cases. The first line of each test case contains three space-separated integers-N,x,M-denoting the size of the array ,index of the element you have to find, and the amount of times you need to repeat operation before finding the element ,respectively.The second line contains N space-separated integers A1,A2,...,A[N].
OUTPUT For each test case,output a single line containing one integer : A[x]modulo 10^9+7.
3 2 3
1 2 3
3 3 3
1 2 3