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;
namespace io {
const int l = 1 << 20;
char buf[l], *s, *t, c;
inline void gc() {
  if (s == t) {
    t = (s = buf) + fread(buf, 1, l, stdin);
    c = s == t ? EOF : *s++;
  } else
    c = *s++;
}
template <class IT>
inline void gi(IT &x) {
  x = 0;
  gc();
  while (c < '0' || c > '9') gc();
  while ('0' <= c && c <= '9') {
    x = (x << 1) + (x << 3) + (c ^ 48);
    gc();
  }
}
char buf0[20];
int a;
template <class IT>
inline void pi(IT x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  do buf0[++a] = x % 10 + 48;
  while (x /= 10);
  while (a) putchar(buf0[a--]);
  putchar('\n');
}
};  // namespace io
using io::gi;
using io::pi;
template <class IT>
inline void cmax(IT &a, IT b) {
  if (a < b) a = b;
}
template <class IT>
inline void cmin(IT &a, IT b) {
  if (b < a) a = b;
}
const int N = 400005, K = 18;
int fa[K + 1][N], de[N];
inline int jump(int v, int d) {
  int i;
  for (i = (K); i >= (0); --i)
    if (d >> i & 1) v = fa[i][v];
  return v;
}
inline int lca(int v, int u) {
  if (de[v] < de[u]) swap(v, u);
  v = jump(v, de[v] - de[u]);
  if (v == u) return v;
  int i;
  for (i = (K); i >= (0); --i)
    if (fa[i][v] != fa[i][u]) {
      v = fa[i][v];
      u = fa[i][u];
    }
  return fa[0][v];
}
vector<int> e[N];
void dfs(int v, int f, int d) {
  fa[0][v] = f;
  de[v] = d++;
  int s = e[v].size(), u;
  while (s--)
    if ((u = e[v][s]) != f) dfs(u, v, d);
}
int ufs[N], o[N], d[N], q[N];
int UFS(int v) { return ufs[v] ? ufs[v] = UFS(ufs[v]) : v; }
inline void mg(int v, int u) {
  if ((v = UFS(v)) != (u = UFS(u))) ufs[u] = v;
}
int main() {
  int n, k, t, O, k2, i, v, u, l = 1, r = 0;
  scanf("%d%d%d", &n, &k, &t);
  k2 = k << 1;
  for (i = (1); i < (n); ++i) {
    scanf("%d%d", &v, &u);
    e[v].push_back(n + i);
    e[u].push_back(n + i);
    e[n + i].push_back(v);
    e[n + i].push_back(u);
  }
  n = (n << 1) - 1;
  for (v = (1); v <= (n); ++v) d[v] = N;
  while (t--) {
    scanf("%d", &v);
    d[q[++r] = o[v] = v] = 0;
  }
  while (l <= r) {
    v = q[l++];
    if (d[v] == k) continue;
    t = d[v] + 1;
    O = o[v];
    i = e[v].size();
    while (i--) {
      mg(v, u = e[v][i]);
      if (d[u] == N) {
        d[u] = t;
        o[u] = O;
        q[++r] = u;
      }
    }
  }
  dfs(1, 0, 1);
  for (i = (0); i < (K); ++i)
    for (v = (1); v <= (n); ++v) fa[i + 1][v] = fa[i][fa[i][v]];
  scanf("%d", &t);
  while (t--) {
    scanf("%d%d", &v, &u);
    O = lca(v, u);
    l = de[v] - de[O];
    r = de[u] - de[O];
    if (l + r <= k2)
      puts("YES");
    else {
      if (r < k) {
        swap(l, r);
        swap(v, u);
      }
      if (l < k) {
        v = jump(u, l + r - k);
        u = jump(u, k);
      } else {
        v = jump(v, k);
        u = jump(u, k);
      }
      if (o[v] && o[u] && UFS(o[v]) == UFS(o[u]))
        puts("YES");
      else
        puts("NO");
    }
  }
  return 0;
}