The first line of the input gives the number of test cases, T(1≤T≤100). Ttest cases follow.
For each test case, the first line contains an integer n(1≤n≤105), the number of words in the sentence.
The second line contains the sentence Sconsisting of nwords separated by spaces. Each word consists of no more than 10lowercase English letters.
The sum of nin all test cases doesn't exceed 2×105.