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;
vector<int> v[200005];
int dist[200005], col[200005], a[200005], b[200005], par[200005], dep[200005],
    dp[20][200005];
int find(int x) {
  if (par[x] != x) par[x] = find(par[x]);
  return par[x];
}
void Union(int x, int y) {
  x = find(x);
  y = find(y);
  if (x != y) par[x] = y;
}
void dfs(int node, int p) {
  dep[node] = dep[p] + 1;
  dp[0][node] = p;
  for (int i = 1; i < 20; i++) dp[i][node] = dp[i - 1][dp[i - 1][node]];
  for (int u : v[node]) {
    if (u != p) dfs(u, node);
  }
}
int kth(int u, int k) {
  for (int i = 0; i < 20; i++) {
    if (k & (1 << i)) u = dp[i][u];
  }
  return u;
}
int lca(int u, int v) {
  if (dep[u] < dep[v]) swap(u, v);
  u = kth(u, dep[u] - dep[v]);
  if (u == v) return u;
  for (int i = 19; i >= 0; i--) {
    if (dp[i][u] != dp[i][v]) {
      u = dp[i][u];
      v = dp[i][v];
    }
  }
  return dp[0][u];
}
int dst(int u, int v) { return dep[u] + dep[v] - 2 * dep[lca(u, v)]; }
int getnode(int u, int v) {
  if (!dist[u]) return u;
  int l = lca(u, v);
  if (dist[l] <= dep[u] - dep[l]) {
    int cur = u, d = 0;
    for (int i = 19; i >= 0; i--) {
      if (d + (1 << i) > dep[u] - dep[l]) continue;
      if (dist[dp[i][cur]] > d + (1 << i)) {
        cur = dp[i][cur];
        d += (1 << i);
      }
    }
    return col[dp[0][cur]];
  }
  int cur = v, d = 0, len = dst(u, v);
  for (int i = 19; i >= 0; i--) {
    if (d + (1 << i) > dep[v] - dep[l]) continue;
    if (dist[dp[i][cur]] <= len - (d + (1 << i))) {
      cur = dp[i][cur];
      d += (1 << i);
    }
  }
  return col[cur];
}
int main() {
  int n, k, r, qu;
  scanf("%d%d%d", &n, &k, &r);
  for (int i = 1; i < n; i++) {
    scanf("%d%d", &a[i], &b[i]);
    v[a[i]].push_back(b[i]);
    v[b[i]].push_back(a[i]);
  }
  queue<int> q;
  memset(dist, -1, sizeof(dist));
  while (r--) {
    int a;
    scanf("%d", &a);
    q.push(a);
    dist[a] = 0;
    col[a] = a;
    par[a] = a;
  }
  while (!q.empty()) {
    int node = q.front();
    q.pop();
    for (int u : v[node]) {
      if (dist[u] == -1) {
        dist[u] = dist[node] + 1;
        col[u] = col[node];
        q.push(u);
      }
    }
  }
  for (int i = 1; i < n; i++) {
    if (dist[a[i]] + dist[b[i]] + 1 <= k) Union(col[a[i]], col[b[i]]);
  }
  dfs(1, 0);
  scanf("%d", &qu);
  while (qu--) {
    int u, v;
    scanf("%d%d", &u, &v);
    if (dst(u, v) <= k) {
      printf("YES\n");
      continue;
    }
    int a = getnode(u, v), b = getnode(v, u);
    if (dst(u, a) <= k && dst(v, b) <= k && find(a) == find(b))
      printf("YES\n");
    else
      printf("NO\n");
  }
}