Problem: Bessie is planning a vacation! In Cow-lifornia, there are n cities, with n-1 bidirectional roads connecting them. It is guaranteed that one can reach any city from any other city. 

Bessie is considering v possible vacation plans, with the i-th one consisting of a start city a_i and destination city b_i.

It is known that only r of the cities have rest stops. Bessie gets tired easily, and cannot travel across more than k consecutive roads without resting. In fact, she is so desperate to rest that she may travel through the same city multiple times in order to do so.

For each of the vacation plans, does there exist a way for Bessie to travel from the starting city to the destination city?

Input

The first line contains three integers n, k, and r (2 ≤ n ≤ 2 ⋅ 10^5, 1 ≤ k,r ≤ n) — the number of cities, the maximum number of roads Bessie is willing to travel through in a row without resting, and the number of rest stops.

Each of the following n-1 lines contain two integers x_i and y_i (1 ≤ x_i, y_i ≤ n, x_i ≠ y_i), meaning city x_i and city y_i are connected by a road. 

The next line contains r integers separated by spaces — the cities with rest stops. Each city will appear at most once.

The next line contains v (1 ≤ v ≤ 2 ⋅ 10^5) — the number of vacation plans.

Each of the following v lines contain two integers a_i and b_i (1 ≤ a_i, b_i ≤ n, a_i ≠ b_i) — the start and end city of the vacation plan. 

Output

If Bessie can reach her destination without traveling across more than k roads without resting for the i-th vacation plan, print YES. Otherwise, print NO.

Examples

Input


6 2 1
1 2
2 3
2 4
4 5
5 6
2
3
1 3
3 5
3 6


Output


YES
YES
NO


Input


8 3 3
1 2
2 3
3 4
4 5
4 6
6 7
7 8
2 5 8
2
7 1
8 1


Output


YES
NO

Note

The graph for the first example is shown below. The rest stop is denoted by red.

For the first query, Bessie can visit these cities in order: 1, 2, 3.

For the second query, Bessie can visit these cities in order: 3, 2, 4, 5. 

For the third query, Bessie cannot travel to her destination. For example, if she attempts to travel this way: 3, 2, 4, 5, 6, she travels on more than 2 roads without resting.

<image>

The graph for the second example is shown below. 

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int Q = 1 << 19;
int las[Q], e[Q << 1], nn[Q << 1], inc = 0;
void iNS(int x, int y) {
  e[++inc] = y;
  nn[inc] = las[x];
  las[x] = inc;
}
void ins(int x, int y) { iNS(x, y), iNS(y, x); }
int col[Q], q[Q], lk[Q], ds[Q];
int gf(int x) { return lk[x] == x ? x : (lk[x] = gf(lk[x])); }
int top[Q], fa[Q], dep[Q], id[Q], Time = 0, si[Q], bs[Q], tid[Q];
void dfs(int x) {
  si[x] = 1;
  int mx = 0;
  for (int t = las[x]; t; t = nn[t]) {
    int y = e[t];
    if (y == fa[x]) continue;
    fa[y] = x;
    dep[y] = dep[x] + 1;
    dfs(y);
    si[x] += si[y];
    if (si[y] > mx) mx = si[y], bs[x] = y;
  }
}
void dfs(int x, int op) {
  id[x] = ++Time;
  top[x] = op;
  tid[Time] = x;
  if (bs[x]) dfs(bs[x], op);
  for (int t = las[x]; t; t = nn[t]) {
    int y = e[t];
    if (y == fa[x] || y == bs[x]) continue;
    dfs(y, y);
  }
}
int Lca(int x, int y) {
  while (top[x] != top[y])
    if (dep[top[x]] > dep[top[y]])
      x = fa[top[x]];
    else
      y = fa[top[y]];
  return dep[x] < dep[y] ? x : y;
}
int Jmp(int x, int p) {
  p = dep[x] - p;
  while (dep[top[x]] > p) x = fa[top[x]];
  return tid[id[top[x]] + p - dep[top[x]]];
}
int main() {
  int n, k, owo;
  scanf("%d%d%d", &n, &k, &owo);
  for (int i = 1, x, y; i < n; i++)
    scanf("%d%d", &x, &y), ins(n + i, x), ins(n + i, y);
  int hd = 1, tl = 0;
  for (int i = 1, x; i <= owo; i++)
    scanf("%d", &x), col[x] = i, lk[i] = i, q[++tl] = x, ds[x] = 0;
  while (hd <= tl) {
    int x = q[hd++];
    if (ds[x] == k) continue;
    for (int t = las[x]; t; t = nn[t]) {
      int y = e[t];
      if (!col[y])
        col[y] = col[x], q[++tl] = y, ds[y] = ds[x] + 1;
      else
        lk[gf(col[x])] = gf(col[y]);
    }
  }
  for (int i = 1; i < (n << 1); i++) {
    col[i] = gf(col[i]);
    if (!col[i]) col[i] = -i;
  }
  dfs(1), dfs(1, 1);
  int qaq;
  scanf("%d", &qaq);
  while (qaq--) {
    int x, y;
    scanf("%d%d", &x, &y);
    int lc = Lca(x, y);
    if (dep[x] + dep[y] - (dep[lc] << 1) <= (k << 1)) {
      puts("YES");
      continue;
    }
    int dx = dep[x] - dep[lc], dy = dep[y] - dep[lc];
    int xx = (dx >= k) ? Jmp(x, k) : Jmp(y, dy - (k - dx));
    int yy = (dy >= k) ? Jmp(y, k) : Jmp(x, dx - (k - dy));
    puts(col[xx] == col[yy] ? "YES" : "NO");
  }
  return 0;
}