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>
#pragma GCC optimize("O3")
using namespace std;
template <class c>
struct rge {
  c b, e;
};
template <class c>
rge<c> range(c i, c j) {
  return rge<c>{i, j};
}
template <class c>
auto dud(c *r) -> decltype(cerr << *r);
template <class c>
char dud(...);
struct muu {
  template <class c>
  muu &operator<<(const c &) {
    return *this;
  }
};
using pii = pair<int, int>;
using ld = long double;
using ll = long long;
const int maxn = 4 * 100007;
vector<int> v[maxn];
int oj[maxn];
int odl[maxn];
int finder(int x) {
  if (oj[x] == x) return x;
  return oj[x] = finder(oj[x]);
}
void unioner(int a, int b) {
  a = finder(a), b = finder(b);
  oj[a] = b;
}
int moj[maxn][20];
int mgl[maxn];
int pre[maxn], pos[maxn];
int zeit = 0;
void dfs(int a, int sk, int gl) {
  moj[a][0] = sk;
  mgl[a] = gl;
  for (int i = 1; i < 20; i++) moj[a][i] = moj[moj[a][i - 1]][i - 1];
  pre[a] = ++zeit;
  for (auto it : v[a])
    if (it != sk) dfs(it, a, gl + 1);
  pos[a] = zeit;
}
bool isOj(int a, int b) { return pre[a] <= pre[b] && pos[b] <= pos[a]; }
int lca(int a, int b) {
  if (isOj(a, b)) return a;
  int ter = 19;
  while (ter >= 0) {
    if (isOj(moj[a][ter], b))
      ter--;
    else
      a = moj[a][ter];
  }
  return moj[a][0];
}
int skacz(int a, int ile) {
  for (int i = 1, ter = 0; i <= ile; i *= 2, ter++)
    if ((i & ile)) a = moj[a][ter];
  return a;
}
int main() {
  int N, K, R;
  scanf("%d%d%d", &N, &K, &R);
  for (int i = 2; i <= N; i++) {
    int a, b;
    scanf("%d%d", &a, &b);
    v[a].push_back(i + N);
    v[i + N].push_back(b);
    v[b].push_back(i + N);
    v[i + N].push_back(a);
  }
  for (int i = 1; i <= 2 * N; i++) oj[i] = i;
  queue<int> Q;
  memset(odl, 107, sizeof(odl));
  for (int i = 1; i <= R; i++) {
    int a;
    scanf("%d", &a);
    Q.push(a);
    odl[a] = 0;
  }
  while (!Q.empty()) {
    int a = Q.front();
    Q.pop();
    if (odl[a] == K) continue;
    for (auto it : v[a]) {
      if (odl[it] > odl[a] + 1) {
        odl[it] = odl[a] + 1;
        Q.push(it);
      }
      unioner(a, it);
    }
  }
  dfs(1, 1, 0);
  int T;
  scanf("%d", &T);
  while (T--) {
    int a, b;
    scanf("%d%d", &a, &b);
    int c = lca(a, b);
    int odl = mgl[a] - mgl[c] + mgl[b] - mgl[c];
    if (odl <= 2 * K)
      printf("YES\n");
    else {
      int na;
      if (mgl[a] - mgl[c] < K)
        na = skacz(b, mgl[b] - mgl[c] - (K - (mgl[a] - mgl[c])));
      else
        na = skacz(a, K);
      int nb;
      if (mgl[b] - mgl[c] < K)
        nb = skacz(a, mgl[a] - mgl[c] - (K - (mgl[b] - mgl[c])));
      else
        nb = skacz(b, K);
      printf(finder(na) == finder(nb) ? "YES\n" : "NO\n");
    }
  }
  return 0;
}