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;
struct union_find {
  vector<int> p;
  union_find(int n) : p(n, -1) {}
  bool join(int u, int v) {
    if ((u = root(u)) == (v = root(v))) return false;
    if (p[u] > p[v]) swap(u, v);
    p[u] += p[v];
    p[v] = u;
    return true;
  }
  int root(int u) { return p[u] < 0 ? u : p[u] = root(p[u]); }
};
struct cow {
  int a, b, l;
  bool ans;
};
void lca_offline(vector<vector<int>> &adj, vector<cow> &queries, int root = 0) {
  int n = adj.size();
  vector<int> ancestor(n, -1);
  vector<vector<int>> q(n);
  union_find uf(n);
  for (auto &i : queries)
    q[i.a].push_back(&i - &queries[0]), q[i.b].push_back(&i - &queries[0]);
  function<void(int)> dfs = [&](int u) {
    ancestor[u] = u;
    for (auto v : adj[u])
      if (ancestor[v] == -1) {
        dfs(v);
        uf.join(u, v);
        ancestor[uf.root(u)] = u;
      }
    for (auto i : q[u]) {
      int v = (queries[i].a == u) ? queries[i].b : queries[i].a;
      if (ancestor[v] != -1) queries[i].l = ancestor[uf.root(v)];
    }
  };
  dfs(root);
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0);
  int n, k, r;
  cin >> n >> k >> r;
  vector<vector<int>> adj(n);
  for (int i = 1, u, v; i < n; ++i) {
    cin >> u >> v;
    --u, --v;
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  vector<int> d(n, n);
  queue<int> q;
  for (int i = 0, x; i < r; ++i) {
    cin >> x, --x;
    d[x] = 0;
    q.push(x);
  }
  while (!q.empty()) {
    int u = q.front();
    q.pop();
    for (auto v : adj[u])
      if (d[v] == n) {
        d[v] = d[u] + 1;
        q.push(v);
      }
  }
  int m;
  cin >> m;
  vector<cow> cows(m);
  for (auto &i : cows) {
    cin >> i.a >> i.b;
    --i.a, --i.b;
  }
  lca_offline(adj, cows);
  vector<vector<int>> g(n);
  for (auto &i : cows) g[i.l].push_back(&i - &cows[0]);
  union_find ufup(n);
  vector<int> addup(n);
  vector<set<pair<int, int>>> vcup(n), cvup(n);
  function<void(int, int)> dfs = [&](int u, int p) {
    for (auto v : adj[u])
      if (v != p) {
        dfs(v, u);
        if (vcup[v].size() > vcup[u].size())
          swap(vcup[u], vcup[v]), swap(cvup[u], cvup[v]),
              swap(addup[u], addup[v]);
        for (auto i : vcup[v]) {
          i.first += addup[v] - addup[u];
          vcup[u].insert(i);
          cvup[u].insert({i.second, i.first});
        }
      }
    vcup[u].insert({-1 - addup[u], u});
    cvup[u].insert({u, -1 - addup[u]});
    ++addup[u];
    while (!vcup[u].empty() && vcup[u].rbegin()->first + addup[u] > k) {
      auto p = *vcup[u].rbegin();
      vcup[u].erase(p);
      cvup[u].erase({p.second, p.first});
    }
    vector<pair<int, int>> e;
    for (auto it = vcup[u].upper_bound({k - d[u] - addup[u], 1e9});
         it != vcup[u].begin();) {
      --it;
      if (it->first + addup[u] <= d[u]) break;
      e.push_back(*it);
    }
    for (size_t i = 1; i < e.size(); ++i)
      ufup.join(e[i - 1].second, e[i].second);
    for (auto p : e) {
      vcup[u].erase(p);
      cvup[u].erase({p.second, p.first});
    }
    if (!e.empty()) {
      vcup[u].insert({d[u] - addup[u], ufup.root(e[0].second)});
      cvup[u].insert({ufup.root(e[0].second), d[u] - addup[u]});
    }
    for (auto i : g[u]) {
      int a = ufup.root(cows[i].a);
      int b = ufup.root(cows[i].b);
      auto ita = cvup[u].lower_bound({a, -1e9});
      auto itb = cvup[u].lower_bound({b, -1e9});
      cows[i].ans = ita != cvup[u].end() && ita->first == a &&
                    itb != cvup[u].end() && itb->first == b &&
                    ita->second + itb->second + 2 * addup[u] <= k;
    }
  };
  dfs(0, -1);
  for (auto &i : cows) {
    if (i.ans)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}