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;
int n, k, r;
vector<int> G[500000];
int rest_stop[500000], cor[500000];
int dist[500000], pai[500000], sz[500000];
int anc[500000][25], MAX_LOG, nivel[500000];
void dfs(int v, int p, int d) {
  nivel[v] = d;
  anc[v][0] = p;
  if (d) MAX_LOG = max(MAX_LOG, (int)log2((double)d) + 1);
  for (int &u : G[v])
    if (u != p) dfs(u, v, d + 1);
}
void build() {
  for (int j = 0; j < 23; j++)
    for (int i = 0; i < 2 * n; i++) anc[i][j] = -1;
  dfs(0, -1, 0);
  for (int j = 1; j <= MAX_LOG; j++)
    for (int i = 0; i < 2 * n; i++)
      if (anc[i][j - 1] != -1) anc[i][j] = anc[anc[i][j - 1]][j - 1];
}
int walk(int v, int x) {
  while (x) {
    assert(v >= 0);
    v = anc[v][(int)log2(x & -x)], x -= x & -x;
  }
  return v;
}
int lca(int u, int v) {
  if (nivel[u] > nivel[v]) u = walk(u, nivel[u] - nivel[v]);
  if (nivel[u] < nivel[v]) v = walk(v, nivel[v] - nivel[u]);
  if (u == v) return u;
  for (int i = MAX_LOG; i >= 0; i--)
    if (anc[u][i] != anc[v][i]) {
      u = anc[u][i];
      v = anc[v][i];
    }
  return anc[u][0];
}
int dist_in_tree(int u, int v) {
  return nivel[u] + nivel[v] - 2 * nivel[lca(u, v)];
}
int find(int x) {
  if (pai[x] == x) return x;
  return pai[x] = find(pai[x]);
}
void join(int x, int y) {
  x = find(x);
  y = find(y);
  if (x == y) return;
  if (sz[x] > sz[y]) swap(x, y);
  pai[x] = y;
  sz[y] += sz[x];
}
void bfs() {
  queue<int> q;
  for (int i = 0; i < 2 * n; i++) {
    dist[i] = -1;
    pai[i] = i;
    sz[i] = 1;
    if (rest_stop[i]) {
      q.push(i);
      dist[i] = 0;
      cor[i] = i + 1;
    }
  }
  while (!q.empty()) {
    int u = q.front();
    q.pop();
    if (dist[u] >= k) continue;
    for (int &w : G[u]) {
      if (dist[w] == -1) {
        dist[w] = dist[u] + 1;
        cor[w] = cor[u];
        q.push(w);
      } else
        join(cor[w], cor[u]);
    }
  }
}
int walk_to(int u, int v, int x) {
  int l = lca(u, v);
  if (x <= nivel[u] - nivel[l]) return walk(u, x);
  int d = x - (nivel[u] - nivel[l]);
  return walk(v, nivel[v] - nivel[l] - d);
}
int32_t main() {
  scanf(" %d %d %d", &n, &k, &r);
  for (int i = 1; i < n; i++) {
    int u, v;
    scanf(" %d %d", &u, &v);
    u--;
    v--;
    G[u].push_back(n + i - 1);
    G[n + i - 1].push_back(v);
    G[v].push_back(n + i - 1);
    G[n + i - 1].push_back(u);
  }
  for (int i = 0; i < r; i++) {
    int x;
    scanf(" %d", &x);
    rest_stop[x - 1] = 1;
  }
  build();
  bfs();
  int q;
  cin >> q;
  while (q--) {
    int u, v;
    scanf(" %d %d", &u, &v);
    u--;
    v--;
    bool fl = false;
    if (dist_in_tree(u, v) <= 2 * k)
      fl = true;
    else {
      int c1 = cor[walk_to(u, v, k)];
      int c2 = cor[walk_to(v, u, k)];
      if (c1 and c2 and find(c1) == find(c2)) fl = true;
    }
    puts(fl ? "YES" : "NO");
  }
  return 0;
}