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;
mt19937_64 mt(chrono::steady_clock::now().time_since_epoch().count());
inline long long S(int n, int i = 1, int d = 1) {
  return n & 1 ? (2 * i + d * (n - 1)) / 2 * n : n / 2 * (2 * i + d * (n - 1));
}
inline string ctos(char c) { return string(1, c); }
const int SEED = 1e9 + 7 + 7e7;
const int SIZE = 4e5 + 17;
const int M = 1000001917;
const int LOG = 20;
vector<int> gr[SIZE];
bool rest[SIZE], used[SIZE];
pair<int, int> plan[SIZE];
int dst[SIZE], dsu[SIZE], depth[SIZE], par[LOG][SIZE];
int Find(int v) {
  if (dsu[v] == v) return v;
  return dsu[v] = Find(dsu[v]);
}
inline void DsuUnite(int x, int y) {
  x = Find(x), y = Find(y);
  if (rand() & 1) swap(x, y);
  dsu[x] = y;
}
void dfs(int v) {
  for (int u : gr[v]) {
    gr[u].erase(find(gr[u].begin(), gr[u].end(), v));
    par[0][u] = v;
    depth[u] = depth[v] + 1;
  }
  for (int i = 1; i < LOG; i++) par[i][v] = par[i - 1][par[i - 1][v]];
  for (int u : gr[v]) dfs(u);
}
inline int la(int v, int len) {
  for (int i = LOG - 1 - 1; i >= 0; i--) {
    if (len & (1 << i)) {
      v = par[i][v];
    }
  }
  return v;
}
inline int lca(int v, int u) {
  if (depth[v] < depth[u]) swap(v, u);
  v = la(v, depth[v] - depth[u]);
  if (v == u) return v;
  for (int i = LOG - 1 - 1; i >= 0; i--) {
    if (par[i][v] != par[i][u]) {
      v = par[i][v];
      u = par[i][u];
    }
  }
  return par[0][v];
}
inline int walk(int a, int b, int k) {
  int c = lca(a, b);
  if (depth[a] - depth[c] >= k) return la(a, k);
  int ost = k - depth[a] + depth[c];
  return la(b, depth[b] - depth[c] - ost);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, k, r, x, y, v, oldN;
  cin >> n >> k >> r;
  oldN = n;
  for (int i = 0; i < n * 2; i++) dsu[i] = i;
  for (int i = 0; i < n - 1; i++) {
    cin >> x >> y;
    x--;
    y--;
    gr[x].push_back(oldN);
    gr[oldN].push_back(x);
    gr[oldN].push_back(y);
    gr[y].push_back(oldN);
    oldN++;
  }
  for (int i = 0; i < r; i++) {
    cin >> x;
    rest[--x] = true;
  }
  cin >> v;
  for (int i = 0; i < v; i++) cin >> plan[i].first >> plan[i].second;
  queue<pair<int, int>> q;
  for (int i = 0; i < n; i++)
    if (rest[i]) q.push(make_pair(i, 0));
  while (!q.empty()) {
    int u = q.front().first;
    dst[u] = q.front().second;
    q.pop();
    used[u] = true;
    if (dst[u] == k) continue;
    for (int t : gr[u]) {
      if (!used[t] && dst[u] + 1 <= k) {
        used[t] = true;
        dst[t] = dst[u] + 1;
        q.push(make_pair(t, dst[t]));
      }
      DsuUnite(u, t);
    }
  }
  dfs(0);
  for (int i = 0; i < v; i++) {
    auto pl = plan[i];
    bool cor = Find(--pl.first) == Find(--pl.second);
    if (!cor) {
      int l = lca(pl.first, pl.second);
      if (depth[pl.first] + depth[pl.second] - 2 * depth[l] <= k * 2)
        cor = true;
      else {
        int a = pl.first, b = pl.second;
        cor = (Find(walk(a, b, k)) == Find(walk(b, a, k)));
      }
    }
    cout << (cor ? "YES" : "NO") << endl;
  }
}