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;
inline int read() {
  int x = 0;
  char ch = getchar();
  bool f = 0;
  for (; ch < '0' || ch > '9'; ch = getchar())
    if (ch == '-') f = 1;
  for (; ch >= '0' && ch <= '9'; ch = getchar())
    x = (x << 3) + (x << 1) + (ch ^ 48);
  return f ? -x : x;
}
const int N = 4e5 + 10;
const int inf = 1e9;
int n, anc[N], k, r, rt;
vector<int> adj[N];
int f[N], dis[N];
inline void add(int x, int y) {
  adj[x].push_back(y);
  adj[y].push_back(x);
}
int find(int x) { return (f[x] == x) ? x : f[x] = find(f[x]); }
inline void merge(int x, int y) {
  x = find(x);
  y = find(y);
  if (x != y) f[x] = y;
}
queue<int> q;
void bfs() {
  for (int i = (1), end_i = (n * 2); i <= end_i; i++) f[i] = i, dis[i] = inf;
  int x;
  for (int i = (1), end_i = (r); i <= end_i; i++)
    x = read(), dis[x] = 0, q.push(x);
  for (; !q.empty();) {
    int u = q.front();
    q.pop();
    for (auto v : adj[u]) {
      merge(u, v);
      if (dis[v] == inf) {
        dis[v] = dis[u] + 1;
        if (dis[v] != k) q.push(v);
      }
    }
  }
}
int g[N][19], siz[N], dep[N], fa[N], son[N], top[N];
void dfs1(int u, int pre) {
  siz[u] = 1;
  dep[u] = dep[pre] + 1;
  fa[u] = g[u][0] = pre;
  for (int i = 1; (1 << i) <= dep[u]; i++) g[u][i] = g[g[u][i - 1]][i - 1];
  for (auto v : adj[u])
    if (v != pre) {
      dfs1(v, u);
      siz[u] += siz[v];
      if (siz[son[u]] < siz[v]) son[u] = v;
    }
}
void dfs2(int u, int tp) {
  top[u] = tp;
  if (son[u]) dfs2(son[u], tp);
  for (auto v : adj[u])
    if (!top[v]) dfs2(v, v);
}
inline int lca(int x, int y) {
  for (; top[x] != top[y]; x = fa[top[x]])
    if (dep[top[x]] < dep[top[y]]) swap(x, y);
  return dep[x] < dep[y] ? x : y;
}
inline int jump(int x, int k) {
  for (int i = 0; i <= 18; i++)
    if ((1 << i) & k) x = g[x][i];
  return x;
}
inline int jump(int x, int y, int z) {
  if (k <= dep[x] - dep[z])
    return jump(x, k);
  else
    return jump(y, dep[x] + dep[y] - (dep[z] << 1) - k);
}
int main() {
  n = read();
  k = read();
  r = read();
  int x, y, z, _x, _y;
  for (int i = (1), end_i = (n - 1); i <= end_i; i++) {
    x = read();
    y = read();
    add(x, i + n);
    add(i + n, y);
  }
  bfs();
  dfs1(1, 0);
  dfs2(1, 1);
  for (int _ = (1), end_i = (read()); _ <= end_i; _++) {
    x = read(), y = read(), z = lca(x, y);
    if (dep[x] + dep[y] - (dep[z] << 1) <= k * 2) {
      puts("YES");
      continue;
    }
    _x = jump(x, y, z);
    _y = jump(y, x, z);
    puts(find(_x) == find(_y) ? "YES" : "NO");
  }
  return 0;
}