Problem: Somewhere in a parallel Middle-earth, when Saruman caught Frodo, he only found rings. And the -th ring was either gold or silver. For convenience Saruman wrote down a binary string of characters, where the -th character was 0 if the -th ring was gold, and 1 if it was silver.
Saruman has a magic function , which takes a binary string and returns a number obtained by converting the string into a binary number and then converting the binary number into a decimal number. For example, .
Saruman, however, thinks that the order of the rings plays some important role. He wants to find pairs of integers , such that:
- , ,
- , ,
- Pairs and are distinct. That is, at least one of and must hold.
- Let be the substring of , and be the substring of . Then there exists non-negative integer , such that .
Here substring denotes , and denotes rounding the number down to the nearest integer.
Help Saruman solve this problem! It is guaranteed that under the constraints of the problem at least one solution exists.
Input Format: Each test contains multiple test cases.
The first line contains one positive integer (), denoting the number of test cases. Description of the test cases follows.
The first line of each test case contains one positive integer () — length of the string.
The second line of each test case contains a non-empty binary string of length .
It is guaranteed that the sum of over all test cases does not exceed .
Output Format: For every test case print four integers , , , , which denote the beginning of the first substring, the end of the first substring, the beginning of the second substring, and the end of the second substring, respectively.
If there are multiple solutions, print any.
Note: In the first testcase , .
In the second testcase , .
In the third testcase , .
In the fourth testcase , .
In the fifth testcase , .