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 mod = 1000000007;
long long inf = 1LL << 50;
const int N = 200000;
int tree[2 * N + 5];
int ranks[2 * N + 5];
vector<vector<int>> graph;
int dists[2 * N + 5];
int pars[2 * N + 5];
vector<int> depths;
vector<vector<int>> table;
vector<int> parents;
int logs(int x) {
  int ans = 0;
  while (x >>= 1) ans++;
  return ans;
}
void dfs(int curr, int d) {
  depths[curr] = d;
  for (int i : graph[curr]) {
    if (i != parents[curr]) {
      parents[i] = curr;
      dfs(i, d + 1);
    }
  }
}
void preprocess() {
  int n = graph.size();
  parents = vector<int>(n);
  parents[0] = -1;
  depths = vector<int>(n);
  dfs(0, 0);
  table = vector<vector<int>>(n, vector<int>((logs(n)) + 1, -1));
  for (int i = 0; i < n; i++) {
    table[i][0] = parents[i];
  }
  for (int j = 1; j < table[0].size(); j++) {
    for (int i = 0; i < n; i++) {
      if (!(table[i][j - 1] == -1 || table[table[i][j - 1]][j - 1] == -1)) {
        table[i][j] = table[table[i][j - 1]][j - 1];
      }
    }
  }
}
int ith(int b, int lift) {
  for (int i = 0; i < table[0].size(); i++) {
    if ((lift & (1 << i)) != 0) {
      b = table[b][i];
    }
  }
  return b;
}
int query(int a, int b) {
  if (depths[b] < depths[a]) {
    int temp = b;
    b = a;
    a = temp;
  }
  int lift = depths[b] - depths[a];
  for (int i = 0; i < table[0].size(); i++) {
    if ((lift & (1 << i)) != 0) {
      b = table[b][i];
    }
  }
  if (a == b) {
    return a;
  }
  for (int jmp = (int)log2(depths[a]); jmp >= 0; jmp--) {
    if (table[a][jmp] != table[b][jmp]) {
      a = table[a][jmp];
      b = table[b][jmp];
    }
  }
  return table[a][0];
}
int find(int x) { return x == tree[x] ? x : tree[x] = find(tree[x]); }
void link(int x, int y) {
  if (ranks[x] > ranks[y]) {
    tree[y] = x;
  } else {
    tree[x] = y;
    if (ranks[x] == ranks[y]) {
      ranks[y]++;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin.exceptions(cin.failbit);
  int n, k, r;
  cin >> n >> k >> r;
  graph.resize(2 * n);
  vector<int> rests(r);
  for (int i = 0; i < n - 1; i++) {
    int a, b;
    cin >> a >> b;
    a--;
    b--;
    graph[a].push_back(i + n);
    graph[i + n].push_back(a);
    graph[b].push_back(i + n);
    graph[i + n].push_back(b);
  }
  for (int i = 0; i < 2 * n; i++) {
    tree[i] = i;
    ranks[i] = 0;
    dists[i] = -1;
    pars[i] = -1;
  }
  preprocess();
  deque<int> q;
  for (int i = 0; i < r; i++) {
    cin >> rests[i];
    rests[i]--;
    q.push_back(rests[i]);
    dists[rests[i]] = 0;
    pars[rests[i]] = rests[i];
  }
  while (!q.empty()) {
    int curr = q.front();
    q.pop_front();
    for (int i : graph[curr]) {
      if (dists[i] == -1) {
        dists[i] = dists[curr] + 1;
        if (dists[i] <= 2 * k) {
          link(find(curr), i);
          q.push_back(i);
          if (dists[i] <= k) {
            pars[i] = find(curr);
          }
        }
      } else if (dists[i] + dists[curr] + 1 <= 2 * k) {
        link(find(curr), find(i));
      }
    }
  }
  int v;
  cin >> v;
  for (int i = 0; i < v; i++) {
    int a, b;
    cin >> a >> b;
    a--;
    b--;
    int lca = query(a, b);
    int d = 0;
    if (lca == a) {
      d = depths[b] - depths[a];
    } else if (lca == b) {
      d = depths[a] - depths[b];
    } else {
      d = depths[b] + depths[a] - depths[lca] * 2;
    }
    if (d <= 2 * k) {
      cout << "YES\n";
      continue;
    }
    int c1, c2;
    if (depths[a] - depths[lca] < k) {
      c1 = ith(b, d - k);
    } else {
      c1 = ith(a, k);
    }
    if (depths[b] - depths[lca] < k) {
      c2 = ith(a, d - k);
    } else {
      c2 = ith(b, k);
    }
    if (pars[c1] != -1 && pars[c2] != -1 && find(pars[c1]) == find(pars[c2])) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}