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>
template <class T>
inline void read(T &x) {
  x = 0;
  register char c = getchar();
  register bool f = 0;
  while (!isdigit(c)) f ^= c == '-', c = getchar();
  while (isdigit(c)) x = x * 10 + c - '0', c = getchar();
  if (f) x = -x;
}
const int N = 4e5 + 10;
int n, m, q, k, t, pos, x[N], fa[N], anc[N], dep[N], siz[N], son[N], top[N],
    dfn[N], idfn[N], que[N], dis[N];
std::vector<int> G[N];
void dfs(int u) {
  siz[u] = 1;
  for (int v : G[u])
    if (v != fa[u]) {
      fa[v] = u, dep[v] = dep[u] + 1, dfs(v), siz[u] += siz[v];
      if (siz[v] > siz[son[u]]) son[u] = v;
    }
}
void dfs(int u, int tpt) {
  top[u] = tpt, dfn[u] = ++pos, idfn[dfn[u]] = u;
  if (siz[u] == 1) return;
  dfs(son[u], tpt);
  for (int v : G[u])
    if (v != fa[u] && v != son[u]) dfs(v, v);
}
int lca(int u, int v) {
  while (top[u] != top[v]) {
    if (dep[top[u]] > dep[top[v]]) std::swap(u, v);
    v = fa[top[v]];
  }
  return dep[u] < dep[v] ? u : v;
}
int jump(int u, int k) {
  while (dep[u] - dep[top[u]] < k) {
    k -= dep[u] - dep[top[u]] + 1;
    u = fa[top[u]];
  }
  return idfn[dfn[u] - k];
}
int jump(int u, int t, int v, int k) {
  if (k <= dep[u] - dep[t]) return jump(u, k);
  return jump(v, dep[v] - dep[t] - (k - (dep[u] - dep[t])));
}
int find(int x) { return anc[x] == x ? x : anc[x] = find(anc[x]); }
int query(int u, int v) {
  int t = lca(u, v);
  if ((dep[u] - dep[t]) + (dep[v] - dep[t]) <= k) return true;
  int x = jump(u, t, v, k >> 1);
  int y = jump(v, t, u, k >> 1);
  return find(x) == find(y);
}
void init() {
  int l = 0, r = -1, u;
  memset(dis, -1, sizeof(dis));
  for (int i = 1; i <= t; i++) anc[i] = i;
  for (int i = 1; i <= m; i++) que[++r] = x[i], dis[x[i]] = 0;
  while (l <= r) {
    u = que[l++];
    for (int v : G[u]) {
      if (dis[v] == -1) {
        dis[v] = dis[u] + 1;
        if (dis[v] < (k >> 1)) que[++r] = v;
      }
      anc[find(v)] = find(u);
    }
  }
}
int main() {
  read(n), read(k), read(m), t = n, k <<= 1;
  for (int u, v, i = 1; i < n; i++) {
    read(u), read(v), ++t;
    G[u].push_back(t), G[t].push_back(u);
    G[v].push_back(t), G[t].push_back(v);
  }
  for (int i = 1; i <= m; i++) read(x[i]);
  dfs(1);
  dfs(1, 1);
  init();
  read(q);
  for (int u, v, i = 1; i <= q; i++) {
    read(u), read(v);
    puts(query(u, v) ? "YES" : "NO");
  }
}