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;
inline int read() {
  int x = 0, f = 1, c = getchar();
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    x = (x << 1) + (x << 3) + (c ^ 48);
    c = getchar();
  }
  return f == 1 ? x : -x;
}
const int N = 4e5 + 4;
int n, k, m, tim;
int siz[N], dep[N], son[N], top[N], idx[N], dfn[N], fa[N], dis[N];
vector<int> e[N];
queue<int> q;
void dfs_1(int x) {
  siz[x] = 1;
  dep[x] = dep[fa[x]] + 1;
  for (auto v : e[x])
    if (v != fa[x]) {
      fa[v] = x;
      dfs_1(v);
      siz[x] += siz[v];
      if (siz[v] > siz[son[x]]) son[x] = v;
    }
}
void dfs_2(int x, int tp) {
  top[x] = tp;
  idx[dfn[x] = ++tim] = x;
  if (son[x]) dfs_2(son[x], tp);
  for (auto v : e[x])
    if (v != fa[x] && v != son[x]) dfs_2(v, v);
}
inline int findkth(int x, int k) {
  if (k >= dep[x]) return 1;
  while (dep[x] - dep[top[x]] < k) {
    k -= dep[x] - dep[top[x]] + 1;
    x = fa[top[x]];
  }
  return idx[dfn[x] - k];
}
inline int getlca(int x, int y) {
  while (top[x] != top[y]) {
    if (dep[top[x]] > dep[top[y]])
      x = fa[top[x]];
    else
      y = fa[top[y]];
  }
  return dep[x] < dep[y] ? x : y;
}
inline int distan(int x, int y) {
  return dep[x] + dep[y] - dep[getlca(x, y)] * 2;
}
inline int jump(int x, int y, int d) {
  int lca = getlca(x, y);
  if (d <= dep[x] - dep[lca])
    return findkth(x, d);
  else
    return findkth(y, dep[x] + dep[y] - dep[lca] * 2 - d);
}
namespace dsu {
int fa[N];
int find(int x) { return x == fa[x] ? x : fa[x] = find(fa[x]); }
}  // namespace dsu
int main() {
  n = read();
  k = read();
  m = read();
  for (int i = 1, u, v; i < n; i++) {
    u = read();
    v = read();
    e[u].push_back(i + n);
    e[i + n].push_back(u);
    e[v].push_back(i + n);
    e[i + n].push_back(v);
  }
  n += n - 1;
  memset(dis, 0x3f, sizeof(dis));
  for (int i = 1, x; i <= m; i++) {
    dis[x = read()] = 0;
    q.push(x);
  }
  while (!q.empty()) {
    int x = q.front();
    q.pop();
    for (auto v : e[x])
      if (dis[v] > dis[x] + 1) {
        dis[v] = dis[x] + 1;
        q.push(v);
      }
  }
  for (int i = 1; i <= n; i++) dsu::fa[i] = i;
  for (int i = 1, u, v; i <= n; i++)
    if (dis[i] <= k) {
      for (auto j : e[i]) {
        if (min(dis[i], dis[j]) < k) {
          u = dsu::find(i);
          v = dsu::find(j);
          if (u != v) dsu::fa[u] = v;
        }
      }
    }
  dfs_1(1);
  dfs_2(1, 1);
  for (int Q = read(), u, v; Q--;) {
    u = read();
    v = read();
    if (distan(u, v) <= k * 2) {
      puts("YES");
      continue;
    }
    u = jump(u, v, k);
    v = jump(v, u, k);
    puts(dsu::find(u) == dsu::find(v) ? "YES" : "NO");
  }
  return (0 - 0);
}