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 INF = 1e9;
int n, k, r, esp[400100], dist[400100], p[400100];
int dep[400100], P[400100][19];
vector<int> adj[400100];
struct UF {
  int p[400100];
  UF() {
    for (int i = int(0); i < int(400100); ++i) p[i] = i;
  }
  int find(int i) { return (p[i] == i) ? i : (p[i] = find(p[i])); }
  void join(int i, int j) { p[find(i)] = find(j); }
};
UF uf;
void go() {
  queue<int> q;
  for (int i = 1; i <= 2 * n; ++i) {
    if (esp[i]) {
      p[i] = i;
      dist[i] = 0;
      q.push(i);
    } else
      dist[i] = INF;
  }
  while (int(q.size())) {
    int u = q.front();
    q.pop();
    if (dist[u] == k) continue;
    for (int v : adj[u]) {
      if (dist[v] == INF) {
        uf.join(u, v);
        p[v] = p[u];
        dist[v] = dist[u] + 1;
        q.push(v);
      } else if (p[u] != p[v] && uf.find(u) != uf.find(v)) {
        uf.join(u, v);
      }
    }
  }
}
void dfs(int u, int p = -1, int d = 0) {
  dep[u] = d;
  P[u][0] = p;
  for (int i = 1; i < 19 && P[u][i - 1] != -1; ++i)
    P[u][i] = P[P[u][i - 1]][i - 1];
  for (int v : adj[u])
    if (v != p) dfs(v, u, d + 1);
}
int go_up(int a, int d) {
  for (int i = 19 - 1; i >= 0; --i) {
    if (d & (1 << i)) a = P[a][i];
  }
  return a;
}
int __lca(int a, int b) {
  if (dep[a] > dep[b]) swap(a, b);
  for (int i = 19 - 1; i >= 0; --i) {
    if (dep[b] - (1 << i) >= dep[a]) b = P[b][i];
  }
  if (a == b) return a;
  for (int i = 19 - 1; i >= 0; --i) {
    if (P[a][i] != P[b][i]) a = P[a][i], b = P[b][i];
  }
  return P[a][0];
}
inline int getDist(int a, int b) {
  return dep[a] + dep[b] - 2 * dep[__lca(a, b)];
}
int walk(int u, int v, int steps) {
  int lca = __lca(u, v);
  int d = dep[u] - dep[lca];
  if (steps <= d) return go_up(u, steps);
  steps -= d;
  d = dep[v] - dep[lca];
  return go_up(v, d - steps);
}
int main() {
  memset(P, -1, sizeof(P));
  int a, b;
  scanf("%d %d %d", &n, &k, &r);
  for (int i = 0; i < n - 1; ++i) {
    scanf("%d %d", &a, &b);
    adj[a].push_back(n + 1 + i);
    adj[n + 1 + i].push_back(a);
    adj[b].push_back(n + 1 + i);
    adj[n + 1 + i].push_back(b);
  }
  for (int i = 0; i < r; ++i) {
    scanf("%d", &a);
    esp[a] = 1;
  }
  go();
  dfs(1);
  int v;
  scanf("%d", &v);
  while (v--) {
    scanf("%d %d", &a, &b);
    if (uf.find(a) == uf.find(b) or getDist(a, b) <= 2 * k) {
      printf("YES\n");
      continue;
    }
    bool ok = false;
    int u = walk(a, b, k);
    int v = walk(b, a, k);
    if (uf.find(u) == uf.find(v) or uf.find(a) == uf.find(v) or
        uf.find(b) == uf.find(u))
      ok = true;
    printf(ok ? "YES\n" : "NO\n");
  }
  return 0;
}