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 = 4e5;
const int MAXP = 21;
int id[MAXN];
vector<int> G[MAXN];
int par[MAXP][MAXN];
int reach[MAXN];
int depth[MAXN];
int dis[MAXN];
vector<int> special;
int n, r, k;
int N;
int find(int i) {
  if (id[i] < 0) return i;
  return id[i] = find(id[i]);
}
void merge(int a, int b) {
  a = find(a);
  b = find(b);
  if (a == b) return;
  if (-id[a] < -id[b]) swap(a, b);
  id[a] += id[b];
  id[b] = a;
}
void bfs1(void) {
  queue<int> Q;
  for (int i(0); i < N; ++i) dis[i] = 1e9;
  for (auto u : special) {
    dis[u] = 0;
    reach[u] = u;
    Q.push(u);
  }
  while (!Q.empty()) {
    int u = Q.front();
    Q.pop();
    if (dis[u] >= k) continue;
    for (auto v : G[u]) {
      if (dis[u] + 1 < dis[v]) {
        Q.push(v);
        dis[v] = dis[u] + 1;
        reach[v] = reach[u];
      }
      if (dis[u] + dis[v] + 1 <= 2 * k) merge(reach[u], reach[v]);
    }
  }
}
void dfs(int u, int p, int d) {
  par[0][u] = p;
  depth[u] = d;
  for (auto v : G[u])
    if (v != p) dfs(v, u, d + 1);
}
void precomp(void) {
  for (int p(1); p < MAXP; ++p)
    for (int i(0); i < N; ++i) par[p][i] = par[p - 1][par[p - 1][i]];
}
int go_up(int u, int d) {
  for (int p(0); p < MAXP; ++p)
    if ((1 << p) & d) u = par[p][u];
  return u;
}
int lca(int u, int v) {
  if (depth[u] < depth[v]) swap(u, v);
  int diff = depth[u] - depth[v];
  u = go_up(u, diff);
  if (u == v) return u;
  for (int p(MAXP - 1); p >= 0; --p)
    if (par[p][u] != par[p][v]) {
      u = par[p][u];
      v = par[p][v];
    }
  u = par[0][u];
  return u;
}
int calc_dis(int u, int v) {
  int p = lca(u, v);
  return depth[u] + depth[v] - 2 * depth[p];
}
pair<int, int> move_k(int u, int v) {
  int p = lca(u, v);
  int diff_u = depth[u] - depth[p];
  int diff_v = depth[v] - depth[p];
  int needed = k;
  int uu, vv;
  if (diff_u < needed)
    uu = go_up(v, diff_v - (needed - diff_u));
  else
    uu = go_up(u, needed);
  if (diff_v < needed)
    vv = go_up(u, diff_u - (needed - diff_v));
  else
    vv = go_up(v, needed);
  return make_pair(uu, vv);
}
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k >> r;
  N = n;
  for (int i(1); i < n; ++i) {
    int u, v;
    cin >> u >> v;
    --u, --v;
    G[u].push_back(N);
    G[N].push_back(u);
    G[v].push_back(N);
    G[N].push_back(v);
    ++N;
  }
  for (int i(0); i < N; ++i) reach[i] = -1, id[i] = -1;
  special.resize(r);
  for (auto &v : special) {
    cin >> v;
    v--;
  }
  bfs1();
  for (int i(0); i < N; ++i)
    if (reach[i] != -1) reach[i] = find(reach[i]);
  dfs(0, 0, 0);
  precomp();
  int q;
  cin >> q;
  while (q--) {
    int u, v;
    cin >> u >> v;
    --u, --v;
    int dis_uv = calc_dis(u, v);
    if (dis_uv <= 2 * k)
      cout << "YES" << '\n';
    else {
      auto p = move_k(u, v);
      if (reach[p.first] == reach[p.second] and reach[p.first] != -1)
        cout << "YES" << '\n';
      else
        cout << "NO" << '\n';
    }
  }
}