Grammy has a permutation of length n. She wants to delete some useless elements in the permutation, so she decided to use some magic tool to delete them. There are k magic tools, the i-th of them can delete the maximum element of an interval of length exactly ℓ_i. Each magic tool can be used at most once.
After each deletion, the length of the array decreases by one, and the neighbors of the deleted element become neighbors themselves.
Before using the tool, Grammy shows you her blueprint of the array after deletion. The new array consists of exactly m distinct elements from 1 to n. Please help Grammy to determine whether it is possible to delete the elements by using the magic tool, so that the result is equal to the blueprint.
There are multiple test cases.
The first line contains an integer T (1≤T≤105), denoting the number of test cases.
For each test case:
The first line contains three integers n, m, k (1≤m≤n≤2⋅105, 1≤k≤2⋅105), denoting the length of the permutation, the length of the compressed array, and the parameter of the magic tool.
The second line contains n distinct integers a_i (1≤a_i≤n), denoting the initial permutation. It is guaranteed that the elements are distinct.
The third line contains m distinct integers b_i (1≤b_i≤n), denoting the array after compression. It is guaranteed that the elements are distinct.
The fourth line contains k integers ℓ_i (1≤ℓ_i≤n), denoting the magic tools.
It is guaranteed that ∑n≤2⋅105 and ∑k≤2⋅105.
For each test case, output "YES" or "NO" on a separate line, denoting the answer to the problem.