Sam among his friends wants to go to watch a movie in Armstord Cinema.
There is something special about Armstord cinema whenever people come in the group here. They will get seats accordingly their heights. Sam as a curious guy always wants to sit in the middle as cinema has the best view from the middle.
Now, Sam as the leader of his group decides who will join him for the movie.
Initially, he has N−1 friends with him (N including him).
You are given N−1 numbers that represent the heights of Sam's friends.
You are given the height of Sam as well.
Now, Sam can do two operations:
1. He can call a new friend of height H.
2. He can cancel any of his friend invitations.
Each operation will cost him a unit time.
He wants to do this as soon as possible.
Input format
Output format
Print the required answer for each test case in a new line.
Constraints
1≤T≤1001≤N≤1051≤Ar[i]≤109
Note:
In first test case :
We can cancel invitation of person of height 4 (Cost = 1)
In second Test Case:
We can invite person with height 4 (Cost =1)