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;
vector<vector<int> > data;
vector<bool> special;
vector<int> dist;
vector<int> repr;
void add_edge(int u, int v) {
  data[u].push_back(v);
  data[v].push_back(u);
}
struct Vertex {
  int f;
  int r;
};
vector<Vertex> snm;
int get(int v) {
  if (snm[v].f != v) snm[v].f = get(snm[v].f);
  return snm[v].f;
}
void unite(int u, int v) {
  if (snm[u].r > snm[v].r) swap(u, v);
  snm[u].f = v;
  if (snm[u].r == snm[v].r) snm[v].r++;
}
int n, k;
const int INF = 1e9;
void bfs() {
  for (int i = 0; i < 2 * n - 1; ++i) {
    if (special[i]) {
      dist[i] = 0;
      repr[i] = i;
    } else {
      dist[i] = INF;
      repr[i] = -1;
    }
  }
  queue<int> q;
  for (int i = 0; i < 2 * n - 1; ++i) {
    if (dist[i] == INF) continue;
    q.push(i);
  }
  while (q.size()) {
    int W = q.front();
    q.pop();
    for (int i = 0; i < data[W].size(); ++i) {
      int to = data[W][i];
      if (dist[W] + 1 < dist[to]) {
        dist[to] = dist[W] + 1;
        if (dist[to] <= k) {
          repr[to] = repr[W];
        }
        q.push(to);
      } else if (dist[W] + 1 == dist[to]) {
        if (dist[to] <= k) {
          int A = get(repr[to]), B = get(repr[W]);
          if (A == B) continue;
          unite(A, B);
        }
      }
    }
  }
}
const int N = 400007, LG = 20;
int timer = 0;
int binup[N][LG];
vector<int> h, tin, tout;
void dfs(int vertex, int last, int d) {
  tin[vertex] = timer++;
  h[vertex] = d;
  if (last != -1) {
    binup[vertex][0] = last;
    int W = last;
    int lvl = 0;
    while (binup[W][lvl] != -1) {
      binup[vertex][lvl + 1] = binup[W][lvl];
      W = binup[W][lvl];
      lvl++;
    }
  }
  for (int i = 0; i < data[vertex].size(); ++i) {
    int to = data[vertex][i];
    if (to == last) continue;
    dfs(to, vertex, d + 1);
  }
  tout[vertex] = timer++;
}
bool father(int u, int v) {
  if (tin[u] <= tin[v] && tout[u] >= tout[v]) return true;
  return false;
}
int lca(int u, int v) {
  if (father(u, v)) return u;
  if (father(v, u)) return v;
  for (int i = 19; i >= 0; i--) {
    int cand = binup[v][i];
    if (cand == -1) continue;
    if (father(cand, u)) {
      continue;
    }
    v = cand;
  }
  return binup[v][0];
}
int get_dist(int first, int second) {
  int l = lca(first, second);
  return abs(h[l] - h[first]) + abs(h[l] - h[second]);
}
int go(int first, int second) {
  for (int i = 0; i < 20; ++i) {
    if ((1 << i) & second) {
      first = binup[first][i];
    }
  }
  return first;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int a;
  cin >> n >> k >> a;
  data.assign(2 * n - 1, {});
  for (int i = 0; i < n - 1; ++i) {
    int c, d;
    cin >> c >> d;
    c--, d--;
    add_edge(c, i + n);
    add_edge(d, i + n);
  }
  for (int i = 0; i < 2 * n - 1; ++i) snm.push_back({i, 1});
  special.assign(2 * n - 1, false);
  for (int i = 0; i < a; ++i) {
    int first;
    cin >> first;
    first--;
    special[first] = true;
  }
  dist.assign(2 * n - 1, -1);
  repr.assign(2 * n - 1, -1);
  tin.assign(2 * n - 1, -1);
  tout.assign(2 * n - 1, -1);
  bfs();
  for (int i = 0; i < N; ++i)
    for (int j = 0; j < LG; ++j) binup[i][j] = -1;
  h.assign(2 * n - 1, -1);
  dfs(0, -1, 0);
  int q;
  cin >> q;
  for (int i = 0; i < q; ++i) {
    int a, b;
    cin >> a >> b;
    a--, b--;
    int len = get_dist(a, b);
    if (len <= 2 * k) {
      cout << "YES\n";
      continue;
    }
    int A, B;
    int l = lca(a, b);
    if (h[l] + k <= h[a]) {
      A = go(a, k);
    } else
      A = go(b, len - k);
    if (h[l] + k <= h[b]) {
      B = go(b, k);
    } else
      B = go(a, len - k);
    if (repr[A] == -1 || repr[B] == -1) {
      cout << "NO\n";
    } else {
      A = get(repr[A]);
      B = get(repr[B]);
      if (A == B) {
        cout << "YES\n";
      } else
        cout << "NO\n";
    }
  }
}