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 <typename T>
inline T read(T &x) {
  char c = getchar();
  bool f = 0;
  x = 0;
  while (!isdigit(c)) f |= c == '-', c = getchar();
  while (isdigit(c)) x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
  if (f) x = -x;
  return x;
}
template <typename T, typename... Args>
inline void read(T &x, Args &...args) {
  read(x);
  read(args...);
}
template <typename T>
inline void write(T x) {
  if (x < 0)
    putchar('-'), write(-x);
  else {
    if (x > 9) write(x / 10);
    putchar('0' + x % 10);
  }
}
int N, K, R, Q;
int par[400005][19], dep[400005], grp[400005], color[400005], dist[400005];
vector<int> con[400005];
void add_edge(int a, int b) {
  con[a].push_back(b);
  con[b].push_back(a);
}
int find(int n) { return grp[n] == n ? n : (grp[n] = find(grp[n])); }
void dfs(int n) {
  for (int t : con[n])
    if (t != par[n][0]) {
      par[t][0] = n;
      dep[t] = dep[n] + 1;
      dfs(t);
    }
}
inline int lca(int a, int b) {
  if (dep[a] < dep[b]) swap(a, b);
  for (int i = 19; i--;)
    if (dep[a] - dep[b] & 1 << i) a = par[a][i];
  if (a == b) return a;
  for (int i = 19; i--;)
    if (par[a][i] != par[b][i]) a = par[a][i], b = par[b][i];
  return par[a][0];
}
int go_k_step(int a, int b, int c) {
  if (dep[a] - dep[c] < K) {
    int left = dep[b] - dep[c] - (K - (dep[a] - dep[c]));
    for (int i = 19; i--;)
      if (left & 1 << i) b = par[b][i];
    return b;
  } else {
    for (int i = 19; i--;)
      if (K & 1 << i) a = par[a][i];
    return a;
  }
}
int main() {
  read(N, K, R);
  for (int i = 1; i < N; i++) {
    int a, b, c = N + i;
    read(a, b);
    add_edge(a, c);
    add_edge(c, b);
  }
  N += N - 1;
  queue<int> que;
  for (int i = 1; i <= R; i++) {
    int v;
    read(v);
    grp[i] = i;
    color[v] = i;
    dist[v] = 0;
    que.push(v);
  }
  while (!que.empty()) {
    int q = que.front();
    que.pop();
    color[q] = find(color[q]);
    if (dist[q] == K) continue;
    for (int t : con[q]) {
      if (color[t]) {
        color[t] = find(color[t]);
        grp[color[t]] = color[q];
      } else {
        color[t] = color[q];
        dist[t] = dist[q] + 1;
        que.push(t);
      }
    }
  }
  for (int i = 1; i <= N; i++) color[i] = find(color[i]);
  par[1][0] = 1;
  dfs(1);
  for (int k = 1; k < 19; k++)
    for (int i = 1; i <= N; i++) par[i][k] = par[par[i][k - 1]][k - 1];
  for (read(Q); Q--;) {
    int a, b;
    read(a, b);
    int c = lca(a, b);
    if (dep[a] - dep[c] + dep[b] - dep[c] <= K + K) {
      puts("YES");
      continue;
    }
    int na = go_k_step(a, b, c);
    int nb = go_k_step(b, a, c);
    if (color[na] && color[na] == color[nb])
      puts("YES");
    else
      puts("NO");
  }
}