The first line of input contains one integer Q(1<=Q<=25), specifying the number of test cases to consider. The following 3Q lines of input contain descriptions of test cases. Each test case is described by three lines of input.
The first line of a test case description contains one integer N(2<=N<=10), specifying the number of frames. The second line contains a sequence of 2N+1 characters which denotes the game description from Byteasar's notes. Blurry characters are replaced by "?" characters. The third line contains n integers, the total number of points after each frame, separated by spaces. In each number either all digits are readable, or all digits are blurry. Numbers in which all digits are blurry are replaced by "-1".