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 = 400005;
const int MAXP = 20;
const int INF = 1e9;
int n, k, r;
vector<int> g[MAXN];
vector<int> stations;
bool is_station[MAXN];
int used[MAXN];
int p[MAXN];
int union_rank[MAXN];
int depth[MAXN];
int tin[MAXN];
int tout[MAXN];
int up[MAXN][MAXP];
int timer = 0;
int counter = 1;
inline int acquire_middle() { return n + counter++; }
void init_sets() {
  for (int i = 1; i < n + counter; ++i) {
    p[i] = i;
    union_rank[i] = 1;
  }
}
int find_set(int x) {
  if (p[x] == x) {
    return x;
  } else {
    return p[x] = find_set(p[x]);
  }
}
void unite_sets(int a, int b) {
  a = find_set(a);
  b = find_set(b);
  if (a != b) {
    if (union_rank[a] < union_rank[b]) {
      swap(a, b);
    }
    p[b] = a;
    union_rank[b] += union_rank[a];
  }
}
void bfs_for_components() {
  queue<int> q;
  for (auto station_id : stations) {
    used[station_id] = 1;
    q.push(station_id);
  }
  while (!q.empty()) {
    int from = q.front();
    q.pop();
    if (used[from] > k) {
      continue;
    }
    for (auto to : g[from]) {
      if (!used[to]) {
        used[to] = used[from] + 1;
        q.push(to);
      }
      unite_sets(from, to);
    }
  }
}
void dfs_for_lca(int v, int p) {
  tin[v] = timer++;
  depth[v] = depth[p] + 1;
  up[v][0] = p;
  for (int j = 1; j < MAXP; ++j) {
    up[v][j] = up[up[v][j - 1]][j - 1];
  }
  for (auto to : g[v]) {
    if (to != p) {
      dfs_for_lca(to, v);
    }
  }
  tout[v] = timer++;
}
bool is_upper(int a, int b) { return tin[a] <= tin[b] && tout[a] >= tout[b]; }
int lca(int a, int b) {
  if (is_upper(a, b)) {
    return a;
  }
  if (is_upper(b, a)) {
    return b;
  }
  for (int i = MAXP - 1; i >= 0; --i) {
    if (!is_upper(up[a][i], b)) {
      a = up[a][i];
    }
  }
  return up[a][0];
}
int distance(int a, int b) {
  return depth[a] + depth[b] - 2 * depth[lca(a, b)];
}
int up_from(int a, int count) {
  for (int i = MAXP - 1; i >= 0 && count; --i) {
    if ((1 << i) <= count) {
      a = up[a][i];
      count -= (1 << i);
    }
  }
  return a;
}
void print_sets() {
  for (int i = 1; i < n + counter; ++i) {
    cout << i << " -- " << find_set(i) << endl;
  }
}
void solve(int a, int b) {
  if (find_set(a) == find_set(b)) {
    printf("YES\n");
    return;
  }
  int lca_ab = lca(a, b);
  int a_k_to_b = a;
  int b_k_to_a = b;
  int a_to_lca = distance(a, lca_ab);
  int b_to_lca = distance(b, lca_ab);
  if (a_to_lca + b_to_lca <= 2 * k) {
    printf("YES\n");
    return;
  }
  if (a_to_lca >= k) {
    a_k_to_b = up_from(a, k);
  } else {
    a_k_to_b = up_from(b, b_to_lca - (k - a_to_lca));
  }
  if (b_to_lca >= k) {
    b_k_to_a = up_from(b, k);
  } else {
    b_k_to_a = up_from(a, a_to_lca - (k - b_to_lca));
  }
  if (find_set(b_k_to_a) == find_set(a_k_to_b)) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
}
int main() {
  scanf("%d%d%d", &n, &k, &r);
  for (int i = 0; i < n - 1; ++i) {
    int from, to;
    scanf("%d%d", &from, &to);
    int mid = acquire_middle();
    g[from].push_back(mid);
    g[mid].push_back(from);
    g[mid].push_back(to);
    g[to].push_back(mid);
  }
  for (int i = 0; i < r; ++i) {
    int station_id;
    scanf("%d", &station_id);
    stations.push_back(station_id);
    is_station[station_id] = true;
  }
  init_sets();
  bfs_for_components();
  dfs_for_lca(1, 1);
  int cnt;
  scanf("%d", &cnt);
  for (int i = 0; i < cnt; ++i) {
    int from, to;
    scanf("%d%d", &from, &to);
    solve(from, to);
  }
  return 0;
}