You are the proud owner of $$$n$$$ sticks. Each stick has an integer length from $$$1$$$ to $$$n$$$. The lengths of the sticks are distinct.
You want to arrange the sticks in a row. There is a string $$$s$$$ of length $$$n - 1$$$ that describes the requirements of the arrangement.
Specifically, for each $$$i$$$ from $$$1$$$ to $$$n - 1$$$:
Find any valid arrangement of sticks. We can show that an answer always exists.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 500$$$). The description of the test cases follows.
The first line of each test case contains a single integer $$$n$$$ ($$$2 \le n \le 100$$$) — the number of sticks.
The second line of each test case contains a single string $$$s$$$ of length $$$n - 1$$$ consisting of characters $$$\texttt{ \lt }$$$ and $$$\texttt{ \gt }$$$ — describing the requirements of the arrangement.
For each test case, output $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ ($$$1 \leq a_i \leq n$$$, the $$$a_i$$$ are distinct) — the lengths of the sticks in order. If there are multiple solutions, print any of them.
52<5<<><2>3<>7><>>><
2 1 4 3 2 5 1 1 2 2 1 3 3 4 2 5 6 7 1
For the first test case, the requirements of the arrangement are as follows:
Thus, one possible arrangement is $$$[2, 1]$$$.
For the second test case, the requirements of the arrangement are as follows:
Thus, one possible arrangement is $$$[4, 3, 2, 5, 1]$$$.