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 N, K, R;
vector<int> E[200020];
int dep[200020], up[200020][20];
int pp[200020], nxt[200020][20];
pair<int, int> clo[200020];
int exi[200020];
pair<int, int> dis[200020];
int st[200020], en[200020], cs;
const int INF = 1e9;
void pdfs(int x, int fa) {
  clo[x] = pair<int, int>(INF, -1);
  st[x] = ++cs;
  if (exi[x]) clo[x] = pair<int, int>(dep[x], x);
  for (int e : E[x])
    if (e != fa) {
      dep[e] = dep[x] + 1;
      up[e][0] = x;
      for (int i = 1; i < 20; i++) up[e][i] = up[up[e][i - 1]][i - 1];
      pdfs(e, x);
      if (clo[x].first > clo[e].first) {
        clo[x] = clo[e];
      }
    }
  en[x] = cs;
}
int get_lca(int x, int y) {
  if (dep[x] < dep[y]) swap(x, y);
  for (int i = 0; i < (20); i++)
    if (1 << i & (dep[x] - dep[y])) x = up[x][i];
  for (int i = 19; i >= 0; i--)
    if (up[x][i] != up[y][i]) x = up[x][i], y = up[y][i];
  return x == y ? x : up[x][0];
}
int get_len(int x, int y) {
  int lca = get_lca(x, y);
  return dep[x] + dep[y] - dep[lca] * 2;
}
int climb(int x, int l) {
  for (int i = 0; i < (20); i++)
    if (1 << i & l) x = up[x][i];
  return x ? x : 1;
}
int get_u(int x, int k) {
  int px = climb(x, (k + 1) / 2);
  if (clo[px].first < dep[x]) return clo[px].second;
  if (k > (k + 1) / 2) {
    px = up[px][0];
    k -= (k + 1) / 2 + 1;
    if (dis[px].first <= k) return dis[px].second;
  }
  return 0;
}
void DFS(int x, int fa) {
  if (x > 1) {
    pp[x] = get_u(x, K);
  }
  for (int e : E[x])
    if (e != fa) {
      DFS(e, x);
    }
}
void BFS(vector<int> q) {
  for (int i = 0; i < ((int)(q).size()); i++) {
    int t = q[i];
    for (int e : E[t])
      if (dis[e].first == -1) {
        dis[e].first = dis[t].first + 1;
        dis[e].second = dis[t].second;
        q.push_back(e);
      }
  }
}
int Get(int x, int p) {
  int res = get_len(x, p);
  for (int i = 19; i >= 0; i--) {
    if (nxt[x][i] == 0) continue;
    int px = nxt[x][i];
    if (st[p] <= st[px] && st[px] <= en[p]) x = px;
  }
  return min(res, get_len(x, p));
}
void solve() {
  scanf("%d%d%d", &N, &K, &R);
  for (int i = 0; i < (N - 1); i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    E[x].push_back(y);
    E[y].push_back(x);
  }
  for (int i = 1; i <= N; i++) dis[i].first = -1;
  vector<int> qqq;
  for (int i = 1; i <= R; i++) {
    int x;
    scanf("%d", &x);
    exi[x] = 1;
    qqq.push_back(x);
    dis[x] = pair<int, int>(0, x);
  }
  BFS(qqq);
  pdfs(1, -1);
  DFS(1, -1);
  for (int i = 1; i <= N; i++) nxt[i][0] = pp[i];
  for (int i = 1; i < 20; i++) {
    for (int j = 1; j <= N; j++) nxt[j][i] = nxt[nxt[j][i - 1]][i - 1];
  }
  auto trial = [&](int x, int y) {
    int lca = get_lca(x, y);
    int v1 = Get(x, lca);
    int v2 = Get(y, lca);
    if (v1 + dis[lca].first <= K) v1 = min(v1, dis[lca].first);
    if (v2 + dis[lca].first <= K) v2 = min(v2, dis[lca].first);
    return v1 + v2 <= K ||
           (v1 + dis[lca].first <= K && v2 + dis[lca].first <= K);
  };
  int q;
  scanf("%d", &q);
  for (int qq = 0; qq < (q); qq++) {
    int x, y;
    scanf("%d%d", &x, &y);
    printf("%s\n", trial(x, y) ? "YES" : "NO");
  }
}
int main() {
  int T = 1;
  for (int t = 1; t <= T; t++) {
    solve();
  }
  return 0;
}