There are N chairs arranged around a circular table. Each chair has a number written on it. Any person sitting on a chair i can jump number of indices towards left or right, You are sitting on chair X and you have to reach chair Y. Tell the minimum number of jumps required by you. If its impossible to reach then print 1.
Example :- If your sitting on chair 4 and it has number 2 written on it then you can either jump to chair number 2 or chair number 6.
Constraints
Format of the input file:
First line : T i.e number of testcases.
For each testcase :
First line : Three space separated integers N , X and Y.
Second line : N space separated integers denoting the chNum.
Format of the output file:
For each testcase print the answer in a separate line.
For the given testcase we can jump from chair 1 to chair 3 and from chair 3 to chair 5 hence we can reach chair 5 in exactly 2 jumps.