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;
using ll = long long;
class DSU {
 private:
  vector<int> comp, siz;

 public:
  DSU(int n) : comp(n), siz(n, 1) {
    for (int i = 0; i < n; ++i) comp[i] = i;
  }
  int getc(int i) {
    if (comp[i] != i) comp[i] = getc(comp[i]);
    return comp[i];
  }
  bool join(int a, int b) {
    a = getc(a);
    b = getc(b);
    if (a == b) return false;
    if (siz[a] < siz[b]) swap(a, b);
    siz[a] += siz[b];
    comp[b] = a;
    return true;
  }
  int compSize(int i) { return siz[getc(i)]; }
};
class HLD {
 private:
  vector<int> par, siz, cmp, ind;
  int dfs1(int i, vector<vector<int>>& g) {
    for (auto& t : g[i]) {
      if (t == par[i]) continue;
      par[t] = i;
      siz[i] += dfs1(t, g);
      if (siz[t] > siz[g[i][0]] || g[i][0] == par[i]) swap(t, g[i][0]);
    }
    return siz[i];
  }
  void dfs2(int i, int& x, const vector<vector<int>>& g) {
    ind[i] = x;
    ++x;
    for (auto t : g[i]) {
      if (t == par[i]) continue;
      cmp[t] = (x == ind[i] + 1 ? cmp[i] : t);
      dfs2(t, x, g);
    }
  }

 public:
  HLD(vector<vector<int>> g, int r = 0)
      : par(g.size(), -1), siz(g.size(), 1), cmp(g.size(), r), ind(g.size()) {
    dfs1(r, g);
    int x = 0;
    dfs2(r, x, g);
  }
  vector<pair<int, int>> path(int a, int b) const {
    vector<pair<int, int>> le, ri;
    bool swp = 0;
    for (;; b = par[cmp[b]]) {
      if (ind[b] < ind[a]) {
        swap(a, b);
        swp ^= 1;
      }
      if (ind[cmp[b]] <= ind[a]) {
        if (swp)
          ri.push_back({ind[a], ind[b]});
        else
          le.push_back({ind[b], ind[a]});
        break;
      }
      if (swp)
        ri.push_back({ind[cmp[b]], ind[b]});
      else
        le.push_back({ind[b], ind[cmp[b]]});
    }
    vector<pair<int, int>> res;
    for (auto pr : le) res.push_back(pr);
    for (int i = (int)ri.size() - 1; i >= 0; --i) res.push_back(ri[i]);
    return res;
  }
  int index(int i) const { return ind[i]; }
};
int ith(int i, const vector<pair<int, int>>& path, const vector<int>& len) {
  int low = 0;
  int high = (int)path.size();
  while (low != high) {
    int mid = (low + high + 1) >> 1;
    if (len[mid] > i)
      high = mid - 1;
    else
      low = mid;
  }
  i -= len[low];
  int d = (path[low].first <= path[low].second ? 1 : -1);
  return path[low].first + d * i;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, k, r;
  cin >> n >> k >> r;
  vector<vector<int>> g(n);
  for (int i = 0; i < n - 1; ++i) {
    int a, b;
    cin >> a >> b;
    --a;
    --b;
    g[a].push_back(b);
    g[b].push_back(a);
  }
  vector<int> st(r);
  for (int i = 0; i < r; ++i) {
    cin >> st[i];
    --st[i];
  }
  DSU dsu(r);
  vector<int> dist(n, k + 1), comp(n, -1);
  vector<int> sta;
  for (int i = 0; i < r; ++i) {
    dist[st[i]] = 0;
    comp[st[i]] = i;
    sta.push_back(st[i]);
  }
  for (int j = 0; j < sta.size(); ++j) {
    int i = sta[j];
    for (auto t : g[i]) {
      if (dist[t] > dist[i] + 1) {
        dist[t] = dist[i] + 1;
        comp[t] = comp[i];
        sta.push_back(t);
      } else if (comp[t] != -1 && dist[t] + dist[i] + 1 <= k) {
        dsu.join(comp[i], comp[t]);
      }
    }
  }
  HLD hld(g);
  vector<int> rev(n);
  for (int i = 0; i < n; ++i) rev[hld.index(i)] = i;
  int q;
  cin >> q;
  for (; q; --q) {
    int a, b;
    cin >> a >> b;
    --a;
    --b;
    auto path = hld.path(a, b);
    int m = path.size();
    vector<int> len(m + 1, 0);
    for (int i = 0; i < m; ++i)
      len[i + 1] = len[i] + abs(path[i].first - path[i].second) + 1;
    if (len[m] - 1 <= k) {
      cout << "YES\n";
      continue;
    }
    int low = -1;
    int high = len[m] - 1;
    while (low != high) {
      int mid = (low + high + 1) >> 1;
      int j = rev[ith(mid, path, len)];
      if (mid + dist[j] <= k)
        low = mid;
      else
        high = mid - 1;
    }
    int ca = (low == -1 ? -1 : dsu.getc(comp[rev[ith(low, path, len)]]));
    low = 0;
    high = len[m];
    while (low != high) {
      int mid = (low + high) >> 1;
      int j = rev[ith(mid, path, len)];
      if ((len[m] - 1 - mid) + dist[j] <= k)
        high = mid;
      else
        low = mid + 1;
    }
    int cb = (high == len[m] ? -1 : dsu.getc(comp[rev[ith(high, path, len)]]));
    if (ca == -1 || cb == -1 || ca != cb)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
}