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;
const int N = 200005;
const int M = 20;
vector<int> my[N * 2];
int f[N * 2] = {0}, z[N * 2] = {0}, d[N * 2] = {0}, a[N * 2][M] = {0};
int g = 0, to[N * 2] = {0}, lx[N * 2 * 2] = {0}, our[N * 2 * 2][M] = {0};
int find(int x) {
  int now = x, y = 0;
  while (f[now] != now) now = f[now];
  while (x != now) {
    y = f[x];
    f[x] = now;
    x = y;
  }
  return now;
}
void join(int x, int y) { f[find(x)] = find(y); }
void dfs(int x) {
  to[x] = g;
  lx[g++] = x;
  int i = 0, y = 0, k = 0;
  for (i = 0; i < my[x].size(); i++) {
    y = my[x][i];
    if (d[y] == -1) {
      d[y] = d[x] + 1;
      a[y][0] = x;
      for (k = 1;; k++) {
        a[y][k] = a[a[y][k - 1]][k - 1];
        if (!a[y][k]) break;
      }
      dfs(y);
      lx[g++] = x;
    }
  }
}
void build() {
  int i = 0, k = 0, e = 0;
  for (i = 0; i < g; i++) {
    memset(our[i], 0, sizeof(our[i]));
    our[i][0] = lx[i];
  }
  for (k = 1; (1 << k) < g; k++) {
    e = (1 << (k - 1));
    for (i = 0; i + (1 << k) <= g; i++) {
      our[i][k] = our[i][k - 1];
      if (d[our[i + e][k - 1]] < d[our[i][k]]) {
        our[i][k] = our[i + e][k - 1];
      }
    }
  }
}
int lca(int p, int q) {
  p = to[p];
  q = to[q];
  if (p > q) swap(p, q);
  int k = 0, ans = 0;
  for (k = 0;; k++) {
    if ((1 << (k + 1)) >= q - p + 1) break;
  }
  ans = our[q - (1 << k) + 1][k];
  if (d[our[p][k]] < d[ans]) ans = our[p][k];
  return ans;
}
int get(int x, int len) {
  int k = 0;
  for (k = 0; len; k++) {
    if ((len >> k) & 1) {
      len ^= (1 << k);
      x = a[x][k];
    }
  }
  return x;
}
int walk(int p, int q, int ca, int len) {
  if (len <= d[p] - d[ca]) {
    return get(p, len);
  }
  len -= d[p] - d[ca];
  return get(q, d[q] - d[ca] - len);
}
void clean(int i) {
  my[i].clear();
  z[i] = -1;
  f[i] = i;
  d[i] = -1;
  memset(a[i], 0, sizeof(a[i]));
}
int main() {
  int i = 0, Q = 0, ca = 0, n = 0, k = 0, r = 0, p = 0, q = 0, x = 0, y = 0;
  while (scanf("%d%d%d", &n, &k, &r) == 3) {
    for (i = 1; i <= n; i++) {
      clean(i);
    }
    if (k & 1) {
      for (i = n + 1; i <= n + n - 1; i++) {
        clean(i);
      }
    }
    for (i = 1; i < n; i++) {
      scanf("%d%d", &p, &q);
      if (k & 1) {
        my[p].push_back(n + i);
        my[n + i].push_back(q);
        my[q].push_back(n + i);
        my[n + i].push_back(p);
      } else {
        my[p].push_back(q);
        my[q].push_back(p);
      }
    }
    if (k & 1) {
      k <<= 1;
    }
    for (i = 0; i < r; i++) {
      scanf("%d", lx + i);
      z[lx[i]] = 0;
    }
    p = 0;
    q = r;
    while (p < q) {
      x = lx[p++];
      if (z[x] == k / 2) break;
      for (i = 0; i < my[x].size(); i++) {
        y = my[x][i];
        if (z[y] == -1) {
          z[y] = z[x] + 1;
          lx[q++] = y;
        }
        join(x, y);
      }
    }
    g = 0;
    d[1] = 0;
    dfs(1);
    build();
    scanf("%d", &Q);
    while (Q--) {
      scanf("%d%d", &p, &q);
      ca = lca(p, q);
      if (d[p] + d[q] - 2 * d[ca] <= k) {
        printf("YES\n");
        continue;
      }
      if (find(walk(p, q, ca, k / 2)) == find(walk(q, p, ca, k / 2))) {
        printf("YES\n");
        continue;
      }
      printf("NO\n");
    }
  }
  return 0;
}