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>
const int maxn = 4e5 + 9, mod = 998244353, inf = 0x3f3f3f3f;
int Read() {
  int x(0), f(1);
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = (x << 3ll) + (x << 1ll) + c - '0';
    c = getchar();
  }
  return x * f;
}
void Chkmin(int &x, int y) {
  if (y < x) x = y;
}
void Chkmax(int &x, int y) {
  if (y > x) x = y;
}
int add(int x, int y) { return x += y, x >= mod ? x - mod : x; }
int dec(int x, int y) { return x -= y, x < 0 ? x + mod : x; }
int mul(int x, int y) { return 1ll * x * y % mod; }
int Pow(int base, int b) {
  int ret(1);
  while (b) {
    if (b & 1) ret = mul(ret, base);
    base = mul(base, base);
    b >>= 1;
  }
  return ret;
}
namespace Uf {
int fa[maxn], size[maxn];
void Init(int N) {
  for (int i = 1; i <= N; ++i) fa[i] = i, size[i] = 1;
}
int Find(int x) { return fa[x] == x ? x : fa[x] = Find(fa[x]); }
void Merge(int x, int y) {
  int fx(Find(x)), fy(Find(y));
  if (fx == fy) return;
  if (size[fx] > size[fy]) std::swap(fx, fy);
  size[fy] += size[fx];
  fa[fx] = fy;
}
}  // namespace Uf
int n, R, K, q;
int dep[maxn], inc[maxn][20], lu[maxn];
std::vector<int> V[maxn];
void Dfs(int u, int f) {
  dep[u] = dep[f] + 1;
  inc[u][0] = f;
  for (int i = 1; i <= 19; ++i) inc[u][i] = inc[inc[u][i - 1]][i - 1];
  for (int i = 0; i < V[u].size(); ++i) {
    int v(V[u][i]);
    if (v == f) continue;
    Dfs(v, u);
  }
}
int Lca(int x, int y) {
  if (dep[x] < dep[y]) std::swap(x, y);
  for (int i = 19; i >= 0; --i)
    if (dep[inc[x][i]] >= dep[y]) x = inc[x][i];
  if (x == y) return x;
  for (int i = 19; i >= 0; --i) {
    if (inc[x][i] != inc[y][i]) {
      x = inc[x][i];
      y = inc[y][i];
    }
  }
  return inc[x][0];
}
int Dis(int x, int y) { return dep[x] + dep[y] - (dep[Lca(x, y)] << 1); }
int Walk(int u, int v, int len) {
  int lca(Lca(u, v));
  if (dep[u] - dep[lca] < len) {
    len -= dep[u] - dep[lca];
    len = dep[v] - dep[lca] - len;
    for (int i = 0; i <= 19; ++i)
      if ((len >> i) & 1) {
        v = inc[v][i];
      }
    return v;
  } else {
    for (int i = 0; i <= 19; ++i)
      if ((len >> i) & 1) {
        u = inc[u][i];
      }
    return u;
  }
}
void Solve() {
  std::queue<int> que;
  memset(lu, inf, sizeof(lu));
  for (int i = 1; i <= R; ++i) {
    int x(Read());
    que.push(x);
    lu[x] = 0;
  }
  while (que.size()) {
    int u(que.front());
    que.pop();
    if (lu[u] >= K) continue;
    for (int i = 0; i < V[u].size(); ++i) {
      int v(V[u][i]);
      Uf::Merge(u, v);
      if (lu[v] == inf) {
        lu[v] = lu[u] + 1;
        que.push(v);
      }
    }
  }
}
int main() {
  n = Read();
  K = Read();
  R = Read();
  int nod(n);
  for (int i = 1; i < n; ++i) {
    int x(Read()), y(Read());
    ++nod;
    V[x].push_back(nod);
    V[y].push_back(nod);
    V[nod].push_back(x);
    V[nod].push_back(y);
  }
  Uf::Init(nod);
  Dfs(1, 0);
  Solve();
  q = Read();
  while (q--) {
    int x(Read()), y(Read());
    if (Dis(x, y) <= 2 * K) {
      puts("YES");
      continue;
    }
    int xx(Walk(x, y, K)), yy(Walk(y, x, K));
    if (Uf::Find(xx) == Uf::Find(yy)) {
      puts("YES");
    } else {
      puts("NO");
    }
  }
  return 0;
}