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 maxN = 400005;
const int inf = 1 << 29;
int N, K, R, V;
vector<int> G[maxN];
int dist[maxN];
int par[maxN], rnk[maxN];
int findpar(int x) {
  if (par[x] != x) par[x] = findpar(par[x]);
  return par[x];
}
void merge(int x, int y) {
  int px = findpar(x), py = findpar(y);
  if (px == py) return;
  if (rnk[px] < rnk[py]) swap(px, py);
  par[py] = px;
  if (rnk[px] == rnk[py]) rnk[px]++;
}
int depth[maxN], tpar[maxN][20];
void dfs(int cur, int pre) {
  tpar[cur][0] = pre;
  for (int i = 1; i < 20; i++) tpar[cur][i] = tpar[tpar[cur][i - 1]][i - 1];
  for (int i = 0; i < G[cur].size(); i++) {
    int nxt = G[cur][i];
    if (nxt != pre) {
      depth[nxt] = depth[cur] + 1;
      dfs(nxt, cur);
    }
  }
}
int lca(int x, int y) {
  if (depth[x] > depth[y]) swap(x, y);
  for (int i = 19; i >= 0; i--) {
    if (depth[tpar[y][i]] >= depth[x]) y = tpar[y][i];
  }
  for (int i = 19; i >= 0; i--) {
    if (tpar[x][i] != tpar[y][i]) {
      x = tpar[x][i];
      y = tpar[y][i];
    }
  }
  return (x == y) ? x : tpar[x][0];
}
int la(int x, int len) {
  int px = x;
  for (int i = 19; i >= 0; i--) {
    if (depth[x] - depth[tpar[px][i]] <= len) px = tpar[px][i];
  }
  return px;
}
int walk(int x, int y, int l) {
  if (depth[x] - depth[l] >= K) return la(x, K);
  return la(y, depth[x] + depth[y] - 2 * depth[l] - K);
}
int main() {
  scanf("%d %d %d", &N, &K, &R);
  int a, b, M = N;
  for (int i = 1; i < M; i++) {
    scanf("%d %d", &a, &b);
    N++;
    G[a].push_back(N);
    G[b].push_back(N);
    G[N].push_back(a);
    G[N].push_back(b);
  }
  for (int i = 1; i <= N; i++) dist[i] = inf;
  queue<int> Q;
  for (int i = 0; i < R; i++) {
    scanf("%d", &a);
    dist[a] = 0;
    Q.push(a);
  }
  for (int i = 1; i <= N; i++) par[i] = i;
  while (!Q.empty()) {
    int cur = Q.front();
    Q.pop();
    for (int i = 0; i < G[cur].size(); i++) {
      int nxt = G[cur][i];
      merge(cur, nxt);
      if (dist[nxt] > dist[cur] + 1) {
        dist[nxt] = dist[cur] + 1;
        if (dist[nxt] < K) Q.push(nxt);
      }
    }
  }
  dfs(1, 1);
  scanf("%d", &V);
  while (V--) {
    scanf("%d %d", &a, &b);
    int l = lca(a, b);
    if (depth[a] + depth[b] - 2 * depth[l] <= 2 * K)
      puts("YES");
    else {
      int ka = walk(a, b, l), kb = walk(b, a, l);
      puts(findpar(ka) == findpar(kb) ? "YES" : "NO");
    }
  }
  return 0;
}