Zero String#11426

Zero String

1 second
128 megabytes
Easy

You are given a binary string of length . You are allowed to perform the following types of operations on string :

Given that you can use either type of operation any number of times, find the minimum number of operations required to make all characters of the string equal to .

Input

The first line contains a single integer , denoting the number of test cases. Each test case consists of multiple lines.

The first line of each test case contains an integer (1 \le n \le 10^5) — the length of the string. The next line contains a binary string of length .

It is known that contains and only.

Output

For each test case, output on a new line, the minimum number of operations required to make all characters of the string equal to .

Examples

Example 1

Loading
Loading