Mr. Nežmah has an array of length $$$n$$$ and he wants to fill it up with arrows pointing either to the left or to the right. However, he has $$$n - 1$$$ conditions he would like to be satisfied. For each $$$i$$$ from $$$1$$$ to $$$n - 1$$$, he has a non-zero integer $$$a_i$$$, and he would like the following to hold:
In other words, for every line between two consecutive elements, he either has a condition on the number of arrows pointing towards it, or on the number of arrows pointing away from it.
Help Nežmah find an array that satisfies his conditions!
The first line contains a single integer $$$t$$$ ($$$1 \leq t \leq 2 \cdot 10^4$$$), the number of test cases.
The first line of each test case contains a single integer $$$n$$$ ($$$2 \leq n \leq 3 \cdot 10^5$$$).
The second line of each test case contains the array $$$a$$$ ($$$-n \leq a_i \leq n$$$, $$$a_i \neq 0$$$). The array $$$a$$$ will always be such that there is a solution.
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$3 \cdot 10^5$$$.
For each test case, output a string of length $$$n$$$, where the $$$i$$$-th character is < if the arrow there faces left, and it's > if it faces right. If there are multiple solutions, you can output any of them.
774 -2 -3 5 -3 354 -2 4 -24-2 3 35-2 -4 -1 361 2 -1 -2 -3222-1
<<>><<< ><><< >>>< <<>>< <<<<<< >< <<
| Название |
|---|


