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>
bool ckmn(T &a, T b) {
  T c = a;
  a = min(a, b);
  return a != c;
}
template <typename T>
bool ckmx(T &a, T b) {
  T c = a;
  a = max(a, b);
  return a != c;
}
const int N = 200050;
const int L = 20;
const int inf = 1e9 + 7;
vector<int> E[N];
set<pair<int, int>> sts[N];
int add[N];
struct DSU {
  int p[N];
  void init() {
    for (int i = 0; i < N; i++) p[i] = i;
  }
  DSU() {}
  int Find(int x) { return x == p[x] ? x : p[x] = Find(p[x]); }
  void Union(int x, int y) { p[Find(x)] = Find(y); }
} DS;
int d[N], ud[N], dep[N], par[N][L];
bool mark[N];
void DFS(int u, int p) {
  d[u] = mark[u] ? 0 : inf;
  par[u][0] = p;
  dep[u] = dep[p] + 1;
  for (int i = 1; i < L; i++) par[u][i] = par[par[u][i - 1]][i - 1];
  for (int v : E[u])
    if (v != p) {
      DFS(v, u);
      ckmn(d[u], d[v] + 1);
    }
}
void DFS2(int u, int p) {
  if (!p) ud[u] = mark[u] ? 0 : inf;
  if (mark[u]) ud[u] = 0;
  int mn = inf, sec = inf;
  for (int v : E[u])
    if (v != p) {
      int tmp = d[v] + 1;
      if (mn > tmp)
        sec = mn, mn = tmp;
      else
        ckmn(sec, tmp);
    }
  for (int v : E[u])
    if (v != p) {
      int tmp = d[v] + 1;
      int now = mn;
      if (tmp == mn) now = sec;
      ud[v] = min(ud[u] + 1, now + 1);
      DFS2(v, u);
    }
}
int LCA(int u, int v) {
  if (dep[u] < dep[v]) swap(u, v);
  for (int i = L - 1; ~i; i--)
    if (dep[par[u][i]] >= dep[v]) u = par[u][i];
  for (int i = L - 1; ~i; i--)
    if (par[u][i] != par[v][i]) u = par[u][i], v = par[v][i];
  return u == v ? v : par[v][0];
}
int val[N];
bool alive[N];
void sw(int x, int y) {
  swap(add[x], add[y]);
  swap(sts[x], sts[y]);
}
void Merge(int x, int y) {
  for (auto p : sts[y]) {
    val[p.second] += add[y] - add[x];
    p.first += add[y] - add[x];
    sts[x].insert(p);
  }
}
bool ans[N];
int q_u[N], q_v[N], k;
vector<int> Qs[N];
void Solve(int u, int p) {
  for (int v : E[u])
    if (v != p) {
      Solve(v, u);
      add[v]--;
      if (sts[u].size() < sts[v].size()) sw(u, v);
      Merge(u, v);
    }
  sts[u].insert({k - add[u], u});
  val[u] = k - add[u];
  alive[u] = 1;
  while (sts[u].size()) {
    auto x = *sts[u].begin();
    int rlv = x.first + add[u];
    if (rlv < 0) {
      alive[x.second] = 0;
      sts[u].erase(x);
    } else {
      break;
    }
  }
  int d = min(::d[u], ud[u]);
  int chng = k - d;
  int mao = 0;
  while (sts[u].size()) {
    auto x = sts[u].lower_bound({d - add[u], 0});
    if (x == sts[u].end()) break;
    int rlv = x->first + add[u];
    if (rlv < chng) {
      if (mao) DS.Union(mao, x->second);
      mao = DS.Find(x->second);
      sts[u].erase(x);
    } else {
      break;
    }
  }
  if (mao) {
    sts[u].insert({k - d - add[u], mao});
    val[mao] = k - d - add[u];
  }
  for (int q : Qs[u]) {
    int x = DS.Find(q_u[q]);
    int y = DS.Find(q_v[q]);
    if (alive[x] && alive[y] && val[x] + add[u] + val[y] + add[u] >= k)
      ans[q] = 1;
    else
      ans[q] = 0;
  }
}
int main() {
  DS.init();
  int n, r;
  scanf("%i %i %i", &n, &k, &r);
  for (int i = 1, u, v; i < n; i++)
    scanf("%i %i", &u, &v), E[u].push_back(v), E[v].push_back(u);
  for (int i = 1, u; i <= r; i++) scanf("%i", &u), mark[u] = 1;
  DFS(1, 0);
  DFS2(1, 0);
  int q;
  scanf("%i", &q);
  for (int i = 1; i <= q; i++) {
    scanf("%i %i", &q_u[i], &q_v[i]);
    int lca = LCA(q_u[i], q_v[i]);
    Qs[lca].push_back(i);
  }
  Solve(1, 0);
  for (int i = 1; i <= q; i++) {
    if (ans[i])
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}