The input consists of multiple test cases, starting with an integer $t$ $(1\leq t\leq 100)$, denoting the number of the test cases.
The first line of each test case contains three positive integers n,m,q. $(1\leq n,m,q\leq 5*10^4)$
Each of the next $m$ lines contains three integers $u_i,v_i,w_i$, indicating that the $i-th$ edge is from $u_i$ to $v_i$ and weighted $w_i$.$(1\leq u_i,v_i \leq n,1\leq w_i\leq 10^9)$
Each of the next $q$ lines contains one integer $k$ as mentioned above.$(1\leq k\leq 5*10^4)$
It's guaranteed that $\Sigma n$ ,$\Sigma m$, $\Sigma q , \Sigma \max(k)\leq 2.5*10^5$ and $\max(k)$ won't exceed the number of paths in the graph.