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;
int const N = 200000, B = 18;
int pa[N + 1], n, k, r, mndp[N + 1], dp[N + 1], up[N + 1][B];
vector<int> tr[N + 1], qv[N + 1];
bool sp[N + 1], an[N];
set<pair<int, int> > st[N + 1], st2[N + 1];
pair<int, int> qu[N];
int P(int v) { return pa[v] ? pa[v] = P(pa[v]) : v; }
void J(int a, int b) {
  a = P(a), b = P(b);
  if (a == b) return;
  pa[b] = a;
  if (mndp[b] < mndp[a]) mndp[a] = mndp[b];
}
void go(int v = 1, int p = 0) {
  for (int u : tr[v])
    if (u != p) go(u, v);
  int &d = dp[v];
  mndp[v] = d;
  if (sp[v]) {
    for (int u : tr[v]) {
      while (!st[u].empty() && st[u].begin()->first <= d + k) {
        J(st[u].begin()->second, v);
        st[u].erase(st[u].begin());
      }
      while (!st2[u].empty() && st2[u].begin()->first <= d + k) {
        J(st2[u].begin()->second, v);
        st2[u].erase(st2[u].begin());
      }
      st[u].clear();
      st2[u].clear();
    }
    st[v].insert(make_pair(d, P(v)));
  } else {
    int mn = 0;
    for (int u : tr[v])
      if (!st[u].empty() &&
          (mn == 0 || st[u].begin()->first < st[mn].begin()->first))
        mn = u;
    if (mn) {
      for (int u : tr[v])
        if (u != mn) {
          while (!st[u].empty() &&
                 st[u].begin()->first - d + st[mn].begin()->first - d <= k) {
            J(st[u].begin()->second, st[mn].begin()->second);
            st[u].erase(st[u].begin());
          }
          auto it = st2[u].lower_bound(make_pair(st[mn].begin()->first, 0));
          while (it != st2[u].end() &&
                 it->first - d + st[mn].begin()->first - d <= k) {
            J(it->second, st[mn].begin()->second);
            st2[u].erase(it++);
          }
        }
    }
    auto up = [&](set<pair<int, int> > st[]) {
      mn = 0;
      for (int u : tr[v])
        if (st[u].size() > st[mn].size()) mn = u;
      swap(st[v], st[mn]);
      for (int u : tr[v]) {
        for (auto it = st[u].begin(); it != st[u].end(); ++it)
          st[v].insert(*it);
        st[u].clear();
      }
    };
    up(st);
    up(st2);
    st2[v].insert(make_pair(d, v));
  }
  for (int t : qv[v])
    if (mndp[P(qu[t].first)] - d + mndp[P(qu[t].second)] - d <= k) an[t] = true;
}
void pl(int v = 1, int p = 0) {
  dp[v] = dp[p] + 1;
  up[v][0] = p;
  int k = 1, z;
  while (k < B && (z = up[v][k - 1])) {
    up[v][k] = up[z][k - 1];
    ++k;
  }
  for (int u : tr[v])
    if (u != p) pl(u, v);
}
int lca(int a, int b) {
  if (dp[a] < dp[b]) swap(a, b);
  int d = dp[a] - dp[b], j = 0;
  while (d) {
    if (d & 1) a = up[a][j];
    ++j;
    d >>= 1;
  }
  if (a == b) return a;
  for (int i = B - 1; i >= 0; --i)
    if (up[a][i] != up[b][i]) a = up[a][i], b = up[b][i];
  return up[a][0];
}
int main() {
  scanf("%d%d%d", &n, &k, &r);
  for (int i = 1; i < (int)(n); ++i) {
    int a, b;
    scanf("%d%d", &a, &b);
    tr[a].push_back(b);
    tr[b].push_back(a);
  }
  for (int i = 0; i < (int)(r); ++i) {
    int t;
    scanf("%d", &t);
    sp[t] = true;
  }
  pl();
  int q;
  scanf("%d", &q);
  for (int i = 0; i < (int)(q); ++i) {
    int a, b;
    scanf("%d%d", &a, &b);
    qu[i] = make_pair(a, b);
    qv[lca(a, b)].push_back(i);
  }
  go();
  for (int i = 0; i < (int)(q); ++i)
    if (P(qu[i].first) == P(qu[i].second)) an[i] = true;
  for (int i = 0; i < (int)(q); ++i) printf("%s\n", an[i] ? "YES" : "NO");
}