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 <int um>
class UF {
 public:
  vector<int> par, rank, cnt;
  UF() {
    par = rank = vector<int>(um, 0);
    cnt = vector<int>(um, 1);
    for (int i = 0; i < um; i++) par[i] = i;
  }
  void reinit() {
    int i;
    for (i = 0; i < (um); i++) rank[i] = 0, cnt[i] = 1, par[i] = i;
  }
  int operator[](int x) {
    return (par[x] == x) ? (x) : (par[x] = operator[](par[x]));
  }
  int count(int x) { return cnt[operator[](x)]; }
  int operator()(int x, int y) {
    if ((x = operator[](x)) == (y = operator[](y))) return x;
    cnt[y] = cnt[x] = cnt[x] + cnt[y];
    if (rank[x] > rank[y]) return par[x] = y;
    rank[x] += rank[x] == rank[y];
    return par[y] = x;
  }
};
int N, K, R, M;
vector<int> E[402020];
int G[402020];
int GD[402020];
int P[21][400005], D[404040];
UF<402020> uf;
void dfs(int cur) {
  for (__typeof(E[cur].begin()) it = E[cur].begin(); it != E[cur].end(); it++)
    if (*it != P[0][cur]) D[*it] = D[cur] + 1, P[0][*it] = cur, dfs(*it);
}
int lca(int a, int b) {
  int ret = 0, i, aa = a, bb = b;
  if (D[aa] > D[bb]) swap(aa, bb);
  for (i = 19; i >= 0; i--)
    if (D[bb] - D[aa] >= 1 << i) bb = P[i][bb];
  for (i = 19; i >= 0; i--)
    if (P[i][aa] != P[i][bb]) aa = P[i][aa], bb = P[i][bb];
  return (aa == bb) ? aa : P[0][aa];
}
int getpar(int cur, int up) {
  int i;
  for (i = 0; i < (20); i++)
    if (up & (1 << i)) cur = P[i][cur];
  return cur;
}
void solve() {
  int i, j, k, l, r, x, y;
  string s;
  cin >> N >> K >> R;
  for (i = 0; i < (N - 1); i++) {
    cin >> x >> y;
    E[x - 1].push_back(N + i);
    E[N + i].push_back(x - 1);
    E[y - 1].push_back(N + i);
    E[N + i].push_back(y - 1);
  }
  N = 2 * N - 1;
  for (i = 0; i < (N); i++) {
    G[i] = -1 - i;
    GD[i] = 1 << 30;
  }
  dfs(0);
  for (i = 0; i < (19); i++)
    for (x = 0; x < (N); x++) P[i + 1][x] = P[i][P[i][x]];
  queue<int> Q;
  for (i = 0; i < (R); i++) {
    cin >> x;
    x--;
    G[x] = x;
    GD[x] = 0;
    Q.push(x);
  }
  while (Q.size()) {
    x = Q.front();
    Q.pop();
    if (GD[x] == K) continue;
    for (auto& e : E[x]) {
      if (G[e] < 0) {
        G[e] = G[x];
        GD[e] = GD[x] + 1;
        Q.push(e);
      } else {
        if (GD[x] + GD[e] + 1 <= 2 * K) uf(G[x], G[e]);
      }
    }
  }
  cin >> M;
  while (M--) {
    int U, V;
    cin >> U >> V;
    U--, V--;
    int l = lca(U, V);
    int td = D[U] + D[V] - 2 * D[l];
    if (td <= 2 * K) {
      cout << "YES" << endl;
      continue;
    }
    int tu, tv;
    if (D[U] - D[l] >= K) {
      tu = getpar(U, K);
    } else {
      tu = getpar(V, td - K);
    }
    if (D[V] - D[l] >= K) {
      tv = getpar(V, K);
    } else {
      tv = getpar(U, td - K);
    }
    if (G[tu] >= 0 && G[tv] >= 0 && uf[G[tu]] == uf[G[tv]])
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
int main(int argc, char** argv) {
  string s;
  int i;
  if (argc == 1) ios::sync_with_stdio(false), cin.tie(0);
  for (i = 0; i < (argc - 1); i++) s += argv[i + 1], s += '\n';
  for (i = 0; i < (s.size()); i++) ungetc(s[s.size() - 1 - i], stdin);
  cout.tie(0);
  solve();
  return 0;
}