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;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
const int MAXN = 200000;
const int MAXLG = 17;
const int MAXQ = 200000;
int n, lim, nspecial;
vector<int> adj[MAXN];
bool isspecial[MAXN];
int nq;
int qa[MAXQ], qb[MAXQ];
bool qans[MAXQ];
int par[MAXN];
int dep[MAXN];
int up[MAXN][MAXLG + 1];
int dist1[MAXN], dist1via[MAXN], dist2[MAXN];
bool canpar[MAXN];
int comp[MAXN], ncomp;
int comptop[MAXN];
void dfsinit(int at) {
  dep[at] = par[at] == -1 ? 0 : dep[par[at]] + 1;
  up[at][0] = par[at] == -1 ? at : par[at];
  for (int k = (0); k < (MAXLG); ++k) up[at][k + 1] = up[up[at][k]][k];
  for (int i = (0); i < (((int)(adj[at]).size())); ++i) {
    int to = adj[at][i];
    if (to == par[at]) continue;
    par[to] = at;
    dfsinit(to);
  }
}
int lca(int a, int b) {
  if (dep[a] < dep[b]) swap(a, b);
  for (int k = MAXLG; k >= 0; --k)
    if (dep[a] - (1 << k) >= dep[b]) a = up[a][k];
  if (a == b) return a;
  for (int k = MAXLG; k >= 0; --k)
    if (up[a][k] != up[b][k]) a = up[a][k], b = up[b][k];
  return par[a];
}
void upddist(int at, int d, int via) {
  if (d != INT_MAX) ++d;
  if (d < dist1[at]) {
    if (dist1via[at] != via) dist2[at] = dist1[at];
    dist1[at] = d, dist1via[at] = via;
  } else if (via != dist1via[at] && d < dist2[at])
    dist2[at] = d;
}
void dfsdown(int at) {
  dist1[at] = dist2[at] = INT_MAX, dist1via[at] = -1;
  if (isspecial[at]) dist1[at] = 0, dist1via[at] = at;
  for (int i = (0); i < (((int)(adj[at]).size())); ++i) {
    int to = adj[at][i];
    if (to == par[at]) continue;
    dfsdown(to);
    upddist(at, dist1[to], to);
  }
}
void dfsup(int at) {
  canpar[at] = par[at] != -1 && dist1[at] + 1 + dist1[par[at]] <= lim;
  if (!canpar[at]) {
    comp[at] = ncomp++;
    comptop[comp[at]] = -1;
  } else
    comp[at] = comp[par[at]];
  if (isspecial[at] &&
      (comptop[comp[at]] == -1 || dep[at] < dep[comptop[comp[at]]]))
    comptop[comp[at]] = at;
  for (int i = (0); i < (((int)(adj[at]).size())); ++i) {
    int to = adj[at][i];
    if (to == par[at]) continue;
    upddist(to, dist1via[at] != to ? dist1[at] : dist2[at], at);
    dfsup(to);
  }
}
pair<int, int> stck[MAXN];
int nstck;
int top[MAXN];
void dfstop(int at, int stckpos) {
  while (stckpos < nstck && stck[stckpos].second < dep[at]) ++stckpos;
  top[at] = stckpos < nstck ? stck[stckpos].first : at;
  for (int i = (0); i < (((int)(adj[at]).size())); ++i) {
    int to = adj[at][i];
    if (to == par[at]) continue;
    int d = dist1via[at] != to ? dist1[at] : dist2[at];
    int deplim = lim + 2 * dep[at] - (dep[at] + d);
    if (nstck == 0 || deplim > stck[nstck - 1].second)
      stck[nstck++] = make_pair(at, deplim);
    dfstop(to, stckpos);
    if (nstck > 0 && stck[nstck - 1].first == at) --nstck;
  }
}
bool calc(int a, int b) {
  int c = lca(a, b);
  if (dep[a] + dep[b] - 2 * dep[c] <= lim) return true;
  if (comp[a] == comp[b]) return true;
  if (dep[top[a]] <= dep[c] && dep[top[b]] <= dep[c]) return true;
  if (dep[top[a]] <= dep[c]) swap(a, b);
  a = top[a];
  if (dep[top[b]] > dep[c]) {
    b = top[b];
    return comp[a] == comp[b];
  }
  if (comptop[comp[a]] == -1) return false;
  a = comptop[comp[a]];
  return dep[a] + dep[b] - 2 * dep[c] <= lim;
}
void solve() {
  par[0] = -1;
  dfsinit(0);
  dfsdown(0);
  ncomp = 0;
  dfsup(0);
  nstck = 0;
  dfstop(0, 0);
  for (int i = (0); i < (nq); ++i) {
    int a = qa[i], b = qb[i];
    qans[i] = calc(a, b);
  }
}
void run() {
  scanf("%d%d%d", &n, &lim, &nspecial);
  for (int i = (0); i < (n - 1); ++i) {
    int a, b;
    scanf("%d%d", &a, &b);
    --a, --b;
    adj[a].push_back(b);
    adj[b].push_back(a);
  }
  for (int i = (0); i < (n); ++i) isspecial[i] = false;
  for (int i = (0); i < (nspecial); ++i) {
    int a;
    scanf("%d", &a);
    --a;
    isspecial[a] = true;
  }
  scanf("%d", &nq);
  for (int i = (0); i < (nq); ++i)
    scanf("%d%d", &qa[i], &qb[i]), --qa[i], --qb[i];
  solve();
  for (int i = (0); i < (nq); ++i) printf("%s\n", qans[i] ? "YES" : "NO");
}
int main() {
  run();
  return 0;
}