Timur initially had a binary string^ s (possibly of length 0). He performed the following operation several (possibly zero) times:
^ A binary string is a string (possibly the empty string) whose characters are either 0 or 1.
Input
The first line of the input contains an integer t (1 ≤ t ≤ 100) — the number of testcases.The first line of each test case contains an integer n (1 ≤ n ≤ 2000) — the length of Timur's final string.The second line of each test case contains a string s of length n consisting of characters 0 or 1, denoting the final string.
Output
For each test case, output a single nonnegative integer — the shortest possible length of Timur's original string. Note that Timur's original string could have been empty, in which case you should output 0.
Examples
Note
In the first test case, the shortest possible string Timur started with is 0, and he performed the following operation: 0 red10red0.In the second test case, the shortest possible string Timur started with is 11, and he performed the following operation: 11 red011red1.In the third test case, the shortest possible string Timur started with is 10101, and he didn't perform any operations.In the fourth test case, the shortest possible string Timur started with is the empty string (which we denote by ), and he performed the following operations: red1red0 red010red1 red10101red0.In the fifth test case, the shortest possible string Timur started with is 101, and he performed the following operations: 101 red0101red1 red101011red0.