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> a[500000];
vector<int> b[500000];
int lc[500000][22];
int d[500000];
int s[500000];
int cp[500000];
int rcmp[500000];
vector<int> ncomp[500000];
int ds[500000];
bool vis[500000];
void dfs(int u, int p = 1) {
  lc[u][0] = p;
  for (int k = 1; k < 22; k++) {
    lc[u][k] = lc[lc[u][k - 1]][k - 1];
  }
  for (auto v : a[u]) {
    if (v != p) {
      d[v] = d[u] + 1;
      dfs(v, u);
    }
  }
}
void tv(int u, int c) {
  rcmp[u] = c;
  vis[u] = true;
  for (auto v : b[u]) {
    if (!vis[v]) {
      tv(v, c);
    }
  }
  vis[u] = false;
}
int lca(int u, int v) {
  if (d[u] > d[v]) swap(u, v);
  int k = 0;
  while (d[v] > d[u]) {
    if (((d[v] - d[u]) & (1 << k)) == (1 << k)) {
      v = lc[v][k];
    }
    k++;
  }
  k = 21;
  while (u != v) {
    while (k > 0 && lc[u][k] == lc[v][k]) k--;
    if (k == -1) return lc[u][0];
    u = lc[u][k];
    v = lc[v][k];
  }
  return u;
}
int dist(int u, int v) { return d[u] + d[v] - 2 * d[lca(u, v)]; }
int lift(int u, int db) {
  int k = 0;
  while ((1 << k) <= db) {
    if (db & (1 << k)) {
      u = lc[u][k];
    }
    k++;
  }
  return u;
}
queue<pair<int, int> > q;
void stops() {
  for (int i = 1; i <= r; i++) {
    vis[s[i]] = true;
    ds[s[i]] = 0;
    cp[s[i]] = i;
    q.push({s[i], i});
  }
  int u, c;
  while (!q.empty()) {
    u = q.front().first;
    c = q.front().second;
    q.pop();
    for (auto v : a[u]) {
      if (!vis[v]) {
        vis[v] = true;
        ds[v] = ds[u] + 1;
        cp[v] = c;
        q.push({v, c});
      }
    }
  }
  for (int i = 1; i <= n; i++) vis[i] = false;
}
void comps() {
  for (int i = 1; i <= r; i++) vis[i] = false;
  for (int u = 1; u <= n; u++) {
    for (auto v : a[u]) {
      if (cp[u] != cp[v] && ds[u] + 1 + ds[v] <= 2 * k) {
        b[cp[u]].push_back(cp[v]);
      }
    }
  }
  int cc = 1;
  for (int i = 1; i <= r; i++) {
    if (rcmp[i] == 0) {
      tv(i, cc);
      cc++;
    }
  }
}
int main() {
  scanf("%d %d %d", &n, &k, &r);
  int x, y;
  for (int i = 1; i <= n - 1; i++) {
    scanf("%d %d", &x, &y);
    a[x].push_back(n + i);
    a[n + i].push_back(x);
    a[n + i].push_back(y);
    a[y].push_back(n + i);
  }
  n += (n - 1);
  dfs(1, 1);
  for (int i = 1; i <= r; i++) {
    scanf("%d", &s[i]);
  }
  stops();
  comps();
  int v;
  scanf("%d", &v);
  while (v--) {
    scanf("%d %d", &x, &y);
    int z = lca(x, y);
    int dis = dist(x, y);
    if (dis <= 2 * k) {
      printf("YES\n");
    } else {
      int kx = d[x] - d[z];
      int ky = d[y] - d[z];
      int px, py;
      if (kx >= k)
        px = lift(x, k);
      else
        px = lift(y, dis - k);
      if (ky >= k)
        py = lift(y, k);
      else
        py = lift(x, dis - k);
      if (rcmp[cp[px]] == rcmp[cp[py]] && ds[px] <= k && ds[py] <= k) {
        printf("YES\n");
      } else {
        printf("NO\n");
      }
    }
  }
  return 0;
}