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 mo = 998244353;
const double PI = acos(-1.0);
template <typename _T>
_T Fabs(_T x) {
  return x < 0 ? -x : x;
}
template <typename _T>
void read(_T &x) {
  _T f = 1;
  x = 0;
  char s = getchar();
  while (s > '9' || s < '0') {
    if (s == '-') f = -1;
    s = getchar();
  }
  while ('0' <= s && s <= '9') {
    x = (x << 3) + (x << 1) + (s ^ 48);
    s = getchar();
  }
  x *= f;
}
int n, m, k, r, head[400005], tot, fa[400005], f[400005][25], dep[400005];
bool vis[400005], imp[400005];
struct ming {
  int id, stp;
};
queue<ming> q;
struct edge {
  int to, nxt;
} e[400005 << 1];
void addEdge(int u, int v) {
  e[++tot] = (edge){v, head[u]};
  head[u] = tot;
}
void makeSet(int x) {
  for (int i = 1; i <= x; i++) fa[i] = i;
}
int findSet(int x) { return fa[x] == x ? x : fa[x] = findSet(fa[x]); }
void unionSet(int a, int b) {
  int u = findSet(a), v = findSet(b);
  if (u == v) return;
  fa[u] = v;
}
void bfs() {
  makeSet(2 * n - 1);
  while (!q.empty()) q.pop();
  for (int i = 1; i <= n; i++)
    if (imp[i]) q.push((ming){i, k}), vis[i] = 1;
  while (!q.empty()) {
    ming t = q.front();
    q.pop();
    if (!t.stp) continue;
    int u = t.id;
    for (int i = head[u]; i; i = e[i].nxt) {
      int v = e[i].to;
      unionSet(u, v);
      if (vis[v]) continue;
      vis[v] = 1;
      q.push((ming){v, t.stp - 1});
    }
  }
}
void dosaka(int u, int fa) {
  f[u][0] = fa;
  dep[u] = dep[fa] + 1;
  for (int i = 1; i <= 22; i++) f[u][i] = f[f[u][i - 1]][i - 1];
  for (int i = head[u]; i; i = e[i].nxt)
    if (e[i].to != fa) dosaka(e[i].to, u);
}
int lca(int a, int b) {
  if (dep[a] > dep[b]) swap(a, b);
  for (int i = 22; i >= 0; i--)
    if (dep[f[b][i]] >= dep[a]) b = f[b][i];
  if (a == b) return a;
  for (int i = 22; i >= 0; i--)
    if (f[a][i] != f[b][i]) a = f[a][i], b = f[b][i];
  return f[a][0];
}
int findFa(int u, int k) {
  for (int i = 22; i >= 0; i--)
    if (k & (1 << i)) u = f[u][i];
  return u;
}
signed main() {
  read(n);
  read(k);
  read(r);
  for (int i = 1; i < n; i++) {
    int u, v;
    read(u);
    read(v);
    addEdge(u, i + n);
    addEdge(i + n, u);
    addEdge(v, i + n);
    addEdge(i + n, v);
  }
  for (int i = 1, x; i <= r; i++) read(x), imp[x] = 1;
  bfs();
  dosaka(1, 0);
  read(m);
  while (m--) {
    int a, b;
    read(a);
    read(b);
    int a_b = lca(a, b), u, v;
    if (dep[a] + dep[b] - 2 * dep[a_b] <= 2 * k) {
      puts("YES");
      continue;
    }
    if (dep[a] - dep[a_b] >= k)
      u = findFa(a, k);
    else
      u = findFa(b, dep[a] + dep[b] - 2 * dep[a_b] - k);
    if (dep[b] - dep[a_b] >= k)
      v = findFa(b, k);
    else
      v = findFa(a, dep[a] + dep[b] - 2 * dep[a_b] - k);
    if (findSet(u) == findSet(v))
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}