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 maxn = 200005, logn = 21;
int n, k, r, nq, par[maxn], dis[maxn], dep[maxn];
int st[maxn][logn];
bool rest[maxn], vis[maxn];
vector<int> g[maxn];
inline int ro(int u) {
  while (u != par[u]) {
    par[u] = par[par[u]];
    u = par[u];
  }
  return u;
}
void dfs(int u, int p) {
  for (int v : g[u]) {
    if (v == p) continue;
    st[v][0] = u;
    dep[v] = dep[u] + 1;
    dfs(v, u);
  }
}
inline int kth(int u, int v) {
  for (int i = logn - 1; i >= 0; i--)
    if (v & (1 << i)) u = st[u][i];
  return u;
}
inline int lca(int a, int b) {
  if (dep[a] > dep[b]) swap(a, b);
  b = kth(b, dep[b] - dep[a]);
  if (a == b) return a;
  for (int i = logn - 1; i >= 0; i--)
    if (st[a][i] != st[b][i]) a = st[a][i], b = st[b][i];
  return st[a][0];
}
inline int fnd(int u, int lc) {
  int lo = 0, hi = dep[u] - dep[lc], ans = u;
  while (lo <= hi) {
    int m = (lo + hi) >> 1, nn = kth(u, m);
    if (m + dis[nn] <= k) {
      ans = nn;
      lo = m + 1;
    } else
      hi = m - 1;
  }
  return ans;
}
inline int fnd(int a, int lc, int b) {
  if (dep[a] - dep[lc] + dis[lc] > k) return fnd(a, lc);
  int lo = 0, hi = dep[b] - dep[lc], ans = b, add = dep[a] - dep[lc];
  while (lo <= hi) {
    int m = (lo + hi) >> 1, nn = kth(b, dep[b] - dep[lc] - m);
    if (m + dis[nn] + add <= k) {
      ans = nn;
      lo = m + 1;
    } else
      hi = m - 1;
  }
  return ans;
}
int main() {
  scanf("%d %d %d", &n, &k, &r);
  for (int i = 1; i < n; i++) {
    int a, b;
    scanf(" %d %d", &a, &b);
    g[a].push_back(b);
    g[b].push_back(a);
  }
  queue<int> q;
  for (int i = 1; i <= r; i++) {
    int a;
    scanf(" %d", &a);
    rest[a] = vis[a] = true;
    q.push(a);
  }
  while (q.size()) {
    int node = q.front();
    q.pop();
    for (int v : g[node]) {
      if (vis[v]) continue;
      vis[v] = true;
      dis[v] = dis[node] + 1;
      q.push(v);
    }
  }
  for (int i = 1; i <= n; i++) par[i] = i;
  for (int i = 1; i <= n; i++) {
    for (int v : g[i]) {
      if (dis[i] + dis[v] + 1 > k) continue;
      int f = ro(i), s = ro(v);
      par[f] = s;
    }
  }
  dfs(1, -1);
  for (int s = 1; (1 << s) <= n; s++)
    for (int i = 1; i <= n; i++) st[i][s] = st[st[i][s - 1]][s - 1];
  scanf(" %d", &nq);
  while (nq--) {
    int a, b, lc;
    scanf(" %d %d", &a, &b);
    lc = lca(a, b);
    if (dep[a] + dep[b] - 2 * dep[lc] <= k)
      printf("YES\n");
    else {
      int f = ro(fnd(a, lc, b)), s = ro(fnd(b, lc, a));
      if (f == s)
        printf("YES\n");
      else
        printf("NO\n");
    }
  }
}