People in Karunanagar are infected with Coronavirus. To understand the spread of disease and help contain it as early as possible, Chef wants to analyze the situation in the town. Therefore, he does the following:
- Chef represents the population of Karunanagar as a binary string of length $N$ standing in a line numbered from $1$ to $N$ from left to right, where an infected person is represented as $1$ and an uninfected person as $0$.
- Every day, an infected person in this binary string can infect an adjacent (the immediate left and right) uninfected person.
- Therefore, if before Day 1, the population is $00100$, then at the end of Day 1, it becomes $01110$ and at the end of Day 2, it becomes $11111$.
But people of Karunanagar are smart and they know that if they 'socially isolate' themselves as early as possible, they reduce the chances of the virus spreading. Therefore on $i$-th day, person numbered $P_i$ isolates himself from person numbered $P_i - 1$, thus cannot affect each other. This continues in the town for $D$ days.
Given the population binary string before Day 1, Chef wants to calculate the total number of infected people in Karunanagar at the end of the day $D$. Since Chef has gone to wash his hands now, can you help do the calculation for him?

-----Input:-----
- First line will contain $T$, number of testcases. Then the test cases follow. 
- The first line of each test case contains a single integer $N$ denoting the length of the binary string.
- The next line contains a binary string of length $N$ denoting the population before the first day, with $1$ for an infected person and $0$ for uninfected.
- The next line contains a single integer $D$ - the number of days people isolate themselves.
- The next line contains $P$ - a list of $D$ distinct space-separated integers where each $P_{i}$ denotes that at the start of $i^{th}$ day, person $P_{i}$ isolated him/herself from the person numbered $P_i-1$.

-----Output:-----
For each test case, print a single integer denoting the total number of people who are infected after the end of $D^{th}$ day.

-----Constraints-----
- $1 \leq T \leq 200$
- $2 \leq N \leq 10^{4}$
- $1 \leq D < N$
- $2 \leq P_{i} \leq N$ for $1 \le i \le D$

-----Subtasks-----
Subtask #1(30 points): $1 \leq T \leq 100$, $2 \leq N \leq 2000$
Subtask #2(70 points): Original Constraints

-----Sample Input:-----
2
9
000010000
3
2 5 8
5
00001
1
5

-----Sample Output:-----
6
1

-----EXPLANATION:-----
For the purpose of this explanation, a social distance can be denoted with a '$|$'.
For the first testcase:
- 
Before Day $1$, the population is: $0|00010000$
- 
Before Day $2$, the population is: $0|001|11000$
- 
Before Day $3$, the population is: $0|011|111|00$
- 
Therefore, after Day $3$, the population will be: $0|111|111|00$
So, there are $6$ infected persons.
For the second testcase:
Before Day $1$, the population is: $0000|1$
Therefore, there is one infected person.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = "t=int(input())\r\nfor i in range(t):\r\n    n=int(input())\r\n    s=list(input())\r\n    d=int(input())\r\n    p=list(map(int,input().split()))\r\n    if s.count('1')==0:\r\n        print(0)\r\n        continue\r\n    c=0\r\n    e=0\r\n    flag=0\r\n    f=0\r\n    g=0\r\n    for j in range(d):\r\n        if s[p[j]-1]=='0':\r\n            s[p[j]-1]='3'\r\n        elif s[p[j]-1]=='1':\r\n            s[p[j]-1]='2'\r\n        s1=s[:]\r\n        #print(s)\r\n        #q1=''.join(s).lstrip('0')\r\n        q=s[f:g+1]\r\n        #q=q1.rstrip('0')\r\n        if len(q)-(c+e)==0 and q[0]=='2' and k==g+1:\r\n            if c+e==0:\r\n                c=len(q)\r\n            break\r\n        c=0\r\n        e=0\r\n        for k in range(n):\r\n            if s[k]=='1':\r\n                if flag==0:\r\n                    flag=1\r\n                    f=k\r\n                g=k\r\n                c+=1\r\n                if k==0:\r\n                    if s[1]=='0':\r\n                        s1[1]='1'\r\n                        c+=1\r\n                elif k==n-1:\r\n                    if s[k-1]=='0':\r\n                        s1[k-1]='1'\r\n                        c+=1\r\n                    elif s[k-1]=='3':\r\n                        s1[k-1]='2'\r\n                        e+=1\r\n                else:\r\n                    if s[k+1]=='0':\r\n                        s1[k+1]='1'\r\n                        c+=1\r\n                    if s[k-1]=='0':\r\n                        s1[k-1]='1'\r\n                        c+=1\r\n                    elif s[k-1]=='3':\r\n                        s1[k-1]='2'\r\n                        e+=1\r\n            elif s[k]=='2':\r\n                if flag==0:\r\n                    flag=1\r\n                    f=k\r\n                g=k\r\n                e+=1\r\n                if k!=n-1:\r\n                    if s[k+1]=='0':\r\n                        s1[k+1]='1'\r\n                        c+=1\r\n           \r\n        s=s1[:]\r\n        #print(s)\r\n        #print(c,e)\r\n    print(c+e)\r\n            \r\n                    \r\n"
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 14103