A robot is located on a 2D Cartesian coordinate system. Initially, the robot is at $(0, 0)$, and Yuki wants to guide the robot to $(x, y)$ using a sequence of instructions.
Specifically, an instruction string consists only of 0 and 1:
0represents moving one step to the right, changing the robot's position from $(a, b)$ to $(a + 1, b)$.1represents moving one step upward, changing the robot's position from $(a, b)$ to $(a, b + 1)$.
Yuki has an instruction string $s = s_1 \dots s_n$ of length $n$ containing only 0, 1, and 2. Yuki must first replace all 2s in the string with either 0 or 1. Then, the robot operates according to the following rule:
- For every non-negative integer $i$, if the robot is not at $(x, y)$ at time $i$, the robot executes the $((i \bmod n) + 1)$-th instruction of the string.
Yuki wants to find a replacement such that the robot reaches $(x, y)$ and the resulting instruction string is lexicographically as small as possible. You need to help Yuki find the lexicographically smallest instruction string that satisfies the condition, or report that no such string exists.
Input
This problem contains multiple test cases.
The first line contains a positive integer $t$ ($1 \le t \le 10^5$), representing the number of test cases.
For each test case:
- The first line contains three integers $n, x, y$ ($1 \le n \le 10^6$, $0 \le x, y \le 10^{18}$).
- The second line contains a string $s$ of length $n$ ($s_i \in \{0, 1, 2\}$).
It is guaranteed that the sum of $n$ over all test cases does not exceed $10^6$.
Output
For each test case, output one line:
- If no such instruction string exists, output
-1. - If such an instruction string exists, output a string of length $n$ representing the lexicographically smallest valid instruction string.
Examples
Input 1
6 5 2 4 01111 5 3 3 02221 5 3 3 00022 6 1 0 011201 4 8 7 2020 5 0 0 22102
Output 1
01111 00111 -1 011001 -1 00100
Note
For the first test case:
- Initially, the robot is at $(0, 0)$, and the instruction string is
01111. - Following the rules, the robot moves sequentially to $(1, 0)$, $(1, 1)$, $(1, 2)$, $(1, 3)$, $(1, 4)$, $(2, 4)$.
- Since the robot reaches $(2, 4)$,
01111is a valid instruction string. It can be proven that01111is the lexicographically smallest valid string, so the answer is01111.
For the second test case:
- Initially, the robot is at $(0, 0)$, and we replace the instruction string
02221with00111. - Following the rules, the robot moves sequentially to $(1, 0)$, $(2, 0)$, $(2, 1)$, $(2, 2)$, $(2, 3)$, $(3, 3)$.
- Since the robot reaches $(3, 3)$,
00111is a valid instruction string. It can be proven that00111is the lexicographically smallest valid string, so the answer is00111.
For the third test case:
- It can be proven that there is no way to replace the
2s in the instruction string such that the robot reaches $(3, 3)$.