The first line contains an integer $T$$(T\leq5)$, denoting the number of test cases.
The first line of each test case contains one string $s(1\leq |s| \leq 10^5)$, denoting a song.
The second line of each test case contains one integer $n(1\leq n \leq 10^5)$, denoting the number of $Superstar Words$
The next $n$ lines contains contains one string $a_i$($ 1 \leq$ |$a_i$| $\leq 30 $), denoting one $Superstar Words$
It is guaranteed that for all test cases, $\sum |s| \leq 4*10^5$, $\sum |a_i| \leq 4*10^5$
$Note$:All input string character sets are lowercase English letters