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;
template <typename T>
void debug_out(T t) {
  cerr << t;
}
template <typename A, typename B>
void debug_out(pair<A, B> u) {
  cerr << "(" << u.first << " " << u.second << ")";
}
template <typename T>
void debug_out(vector<T> t) {
  int sz = t.size();
  for (int i = 0; i < sz; i++) {
    debug_out(t[i]);
    if (i != sz - 1) cerr << ", ";
  }
}
template <typename T>
void debug_out(vector<vector<T>> t) {
  int sz = t.size();
  for (int i = 0; i < sz; i++) {
    debug_out(t[i]);
    if (i != sz - 1) cerr << endl;
  }
}
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) {
  debug_out(H);
  cerr << " ";
  debug_out(T...);
}
template <typename T>
void debug_out(set<T> a) {
  vector<T> _a;
  for (T t : a) _a.push_back(t);
  debug_out(_a);
}
int n, k, r;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k >> r;
  vector<vector<int>> g(n);
  for (int i = 0; i < n - 1; i++) {
    int u, v;
    cin >> u >> v;
    u--;
    v--;
    g[u].push_back(v);
    g[v].push_back(u);
  }
  vector<int> stop(n);
  for (int i = 0; i < r; i++) {
    int a;
    cin >> a;
    a--;
    stop[a] = 1;
  }
  const int inf = 1e8;
  vector<int> dep(n);
  vector<int> par(n, -1);
  vector<int> from(n, inf), to(n, inf);
  function<void(int, int)> dfs = [&](int v, int p) {
    par[v] = p;
    if (~p) dep[v] = dep[p] + 1;
    if (stop[v]) to[v] = 0;
    for (int i : g[v]) {
      if (i == p) continue;
      dfs(i, v);
      to[v] = min(to[v], to[i] + 1);
    }
  };
  dfs(0, -1);
  function<void(int, int)> dfs2 = [&](int v, int p) {
    int x = (!stop[v] ? min(inf, from[v] + 1) : 0), y = INT_MAX;
    for (int i : g[v]) {
      if (i == p) continue;
      int ss = min(inf, to[i] + 1);
      if (ss <= x) {
        swap(x, y);
        x = ss;
      } else
        y = min(y, ss);
    }
    for (int i : g[v]) {
      if (i == p) continue;
      int ss = min(inf, to[i] + 1);
      if (ss == x)
        from[i] = y;
      else
        from[i] = x;
    }
    for (int i : g[v]) {
      if (i == p) continue;
      dfs2(i, v);
    }
  };
  dfs2(0, -1);
  vector<int> keep(n);
  for (int i = 1; i < n; i++) {
    keep[i] = from[i] + to[i] < k;
  }
  const int MAX = 20;
  vector<vector<int>> gr(n, vector<int>(MAX));
  vector<vector<int>> skip(n, vector<int>(MAX));
  vector<int> cnt(n);
  for (int i = 0; i < n; i++) gr[i][0] = par[i];
  for (int j = 1; j < MAX; j++) {
    for (int i = 0; i < n; i++) {
      if (gr[i][j - 1] == -1)
        gr[i][j] = -1;
      else
        gr[i][j] = gr[gr[i][j - 1]][j - 1];
    }
  }
  auto get_par = [&](int u, int v) {
    if (dep[u] < dep[v]) swap(u, v);
    int dif = dep[u] - dep[v];
    for (int i = MAX - 1; i > -1; i--) {
      if ((dif >> i) & 1) u = gr[u][i];
    }
    if (u == v) {
      return v;
    }
    for (int i = MAX - 1; i > -1; i--) {
      if (gr[v][i] != gr[u][i]) {
        v = gr[v][i];
        u = gr[u][i];
      }
    }
    return par[v];
  };
  function<void(int, int)> dfs3 = [&](int v, int p) {
    if (~p) {
      skip[v][0] = skip[p][0];
      cnt[v] = cnt[p];
    }
    if (!keep[v]) {
      cnt[v]++;
      skip[v][0] = v;
    }
    for (int i : g[v]) {
      if (i == p) continue;
      dfs3(i, v);
    }
  };
  dfs3(0, -1);
  for (int j = 1; j < MAX; j++) {
    for (int i = 0; i < n; i++) {
      if (skip[i][j - 1] == -1 || par[skip[i][j - 1]] == -1)
        skip[i][j] = -1;
      else
        skip[i][j] = skip[par[skip[i][j - 1]]][j - 1];
    }
  }
  int v;
  cin >> v;
  while (v--) {
    int a, b;
    cin >> a >> b;
    a--;
    b--;
    int z = get_par(a, b);
    int ca = cnt[a] - cnt[z];
    int cb = cnt[b] - cnt[z];
    if (dep[a] + dep[b] - 2 * dep[z] <= k) {
      cout << "YES" << endl;
      continue;
    }
    int res = 0;
    for (int rot = 0; rot < 2; rot++) {
      int add = 0;
      int sa = a;
      for (int i = MAX - 1; i > -1; i--) {
        if (skip[sa][i] == -1 || dep[skip[sa][i]] <= dep[z]) continue;
        int u = skip[sa][i];
        if (from[u] + min(to[u], dep[a] - dep[u]) < k) {
          add += 1 << i;
          sa = par[skip[sa][i]];
        }
      }
      if (add == ca) {
        int sb = b;
        add = ca + cb;
        for (int i = MAX - 1; i > -1; i--) {
          if (skip[sb][i] == -1 || dep[skip[sb][i]] <= dep[z]) continue;
          int u = skip[sb][i];
          if (min(from[u], -2 * dep[z] + dep[a] + dep[u] - 1) + to[u] >= k) {
            add -= 1 << i;
            sb = par[skip[sb][i]];
          }
        }
      }
      res += add;
      swap(ca, cb);
      swap(a, b);
    }
    cout << (res >= ca + cb ? "YES" : "NO") << endl;
  }
  return 0;
}