Alice and Bob play a game with strings.
Each game starts with Alice choosing a string $$$A$$$ of length $$$n$$$ consisting only of the characters 'H' and 'T' and revealing it to Bob.
The rest of the game is played according to the following procedure, in order:
The game ends immediately when one of the following occurs:
Both players know the rules of the game, and every action is immediately visible to both players.
Now, Alice has already chosen the string $$$A$$$ and revealed it. Given $$$n$$$ and $$$A$$$, determine the winner if both players play optimally from this point onward.
$$$^{\text{∗}}$$$A string $$$a$$$ is a substring of a string $$$b$$$ if $$$a$$$ can be obtained from $$$b$$$ by deleting several (possibly zero) characters from the beginning and several (possibly zero) characters from the end.
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — the number of games. The description of the games follows.
The first line of each game contains a single integer $$$n$$$ ($$$1 \le n \le 3 \cdot 10^5$$$) — the length of the strings.
The second line contains the string $$$A$$$ of length $$$n$$$, consisting only of the characters 'H' and 'T' — Alice's chosen string.
It is guaranteed that the sum of $$$n$$$ over all games does not exceed $$$3 \cdot 10^5$$$.
For each game, output a single line containing Alice if Alice wins, and Bob otherwise.
52HT3THT4TTHT3HHH1T
BobAliceAliceBobBob
In the first game, $$$A = {}$$$"HT". Bob can choose $$$B = {}$$$"TH" and set the first character of $$$S$$$ to 'T'. After that, no matter how Alice appends the remaining characters, Bob is guaranteed to win.
| Name |
|---|


