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;
int read() {
  char ch = '!';
  int res = 0, f = 0;
  while (!isdigit(ch)) {
    ch = getchar();
    if (ch == '-') f = 1;
  }
  while (isdigit(ch)) res = res * 10 + ch - '0', ch = getchar();
  return f ? -res : res;
}
const int N = 2e5 + 100;
int n, Q, K, R, ty[N], tot, mn, rt, used[N], dep[N], mnd[N], sz[N];
int bel[N], son[N], fa[N], dst[N], dfn[N], ts, siz[N], Mn[N << 2], ans[N][3];
vector<int> np, nq, nxt[N], pot[N];
vector<pair<int, int> > qw[N];
bool cmp(int x, int y) { return dep[x] < dep[y]; }
void mdf(int k, int l, int r, int tar, int val) {
  if (l == r) {
    Mn[k] = val;
    return;
  }
  int mid = (l + r) >> 1;
  tar <= mid ? mdf((k << 1), l, mid, tar, val)
             : mdf((k << 1 | 1), mid + 1, r, tar, val);
  Mn[k] = min(Mn[(k << 1)], Mn[(k << 1 | 1)]);
}
int qry(int k, int l, int r, int ql, int qr) {
  if (ql <= l && r <= qr) return Mn[k];
  int mid = (l + r) >> 1, res = 1e9;
  if (ql <= mid) res = min(res, qry((k << 1), l, mid, ql, qr));
  if (qr > mid) res = min(res, qry((k << 1 | 1), mid + 1, r, ql, qr));
  return res;
}
void dfs1(int u, int lst) {
  siz[u] = 1, fa[u] = lst, dst[u] = dst[lst] + 1, dfn[u] = ++ts;
  for (auto v : nxt[u])
    if (v != lst) {
      dfs1(v, u), siz[u] += siz[v];
      son[u] = siz[v] > siz[son[u]] ? v : son[u];
    }
}
void dfs2(int u, int lst) {
  bel[u] = son[lst] == u ? bel[lst] : u;
  for (auto v : nxt[u])
    if (v != lst) dfs2(v, u);
}
int LCA(int x, int y) {
  while (bel[x] != bel[y])
    dst[bel[x]] > dst[bel[y]] ? x = fa[bel[x]] : y = fa[bel[y]];
  return dst[x] < dst[y] ? x : y;
}
queue<int> q;
int vis[N], pa[N], dis[N];
int getfa(int x) { return x == pa[x] ? x : pa[x] = getfa(pa[x]); }
void bfs() {
  for (int i = 1; i <= n; ++i)
    if (ty[i]) vis[i] = pa[i] = i, q.push(i);
  while (!q.empty()) {
    int u = q.front();
    q.pop();
    for (auto v : nxt[u])
      if (!vis[v]) vis[v] = vis[u], dis[v] = dis[u] + 1, q.push(v);
  }
  for (int i = 1; i <= n; ++i)
    for (auto j : nxt[i])
      if (vis[i] != vis[j] && dis[i] + dis[j] + 1 <= K) {
        int x = getfa(vis[i]), y = getfa(vis[j]);
        dst[x] < dst[y] ? pa[y] = x : pa[x] = y;
      }
  for (int i = 1; i <= n; ++i)
    if (ty[i]) pot[mnd[i] = getfa(i)].push_back(i);
}
void getRoot(int u, int lst) {
  sz[u] = 1;
  int _mx = 0;
  for (auto v : nxt[u])
    if (v != lst && !used[v]) {
      getRoot(v, u);
      sz[u] += sz[v];
      _mx = max(_mx, sz[v]);
    }
  _mx = max(_mx, tot - sz[u]);
  if (_mx < mn) mn = _mx, rt = u;
}
void getdep(int u, int lst) {
  dep[u] = -1;
  for (auto v : nxt[u])
    if (v != lst && !used[v]) getdep(v, u);
}
void dfs(int u) {
  used[u] = 1;
  np.clear(), nq.clear();
  dep[0] = -1, getdep(u, 0);
  q.push(u);
  dep[u] = 0;
  while (!q.empty()) {
    int x = q.front();
    q.pop();
    (ty[x] ? nq : np).push_back(x);
    for (auto y : nxt[x])
      if (!~dep[y] && !used[y]) dep[y] = dep[x] + 1, q.push(y);
  }
  reverse(np.begin(), np.end());
  for (int i = 0, j = 0, w = -1; i < np.size(); ++i) {
    while (j < nq.size() && dep[nq[j]] + dep[np[i]] <= K)
      (!~w || dst[mnd[nq[j]]] < dst[w]) ? w = mnd[nq[j]] : 0, ++j;
    if (~w) dst[w] < dst[mnd[np[i]]] ? mnd[np[i]] = w : 0;
  }
  for (auto v : nxt[u])
    if (!used[v]) {
      tot = mn = sz[v], rt = 0;
      getRoot(v, 0);
      dfs(rt);
    }
}
int main() {
  n = read(), K = read(), R = read();
  for (int i = 1; i < n; ++i) {
    int x = read(), y = read();
    nxt[x].push_back(y), nxt[y].push_back(x);
  }
  for (int i = 1; i <= R; ++i) ty[read()] = 1;
  dfs1(1, 0), dfs2(1, 0);
  for (int i = 1; i <= n; ++i) mnd[i] = i;
  dst[0] = -1e9;
  bfs();
  tot = mn = n;
  getRoot(1, 0);
  dfs(rt);
  Q = read();
  for (int i = 1; i <= Q; ++i) {
    int x = read(), y = read(), z = LCA(x, y);
    if (mnd[x] == mnd[y]) continue;
    qw[mnd[x]].push_back(pair<int, int>(i, z));
    qw[mnd[y]].push_back(pair<int, int>(-i, z));
    ans[i][0] = dst[x], ans[i][1] = dst[y], ans[i][2] = dst[z];
  }
  for (int i = 1; i <= n << 2; ++i) Mn[i] = 1e9;
  for (int i = 1; i <= n; ++i)
    if (mnd[i] == i) {
      for (auto x : pot[i]) mdf(1, 1, n, dfn[x], dst[x]);
      for (auto t : qw[i]) {
        int id = abs(t.first), o = t.first < 0, x = t.second;
        ans[id][o] = min(ans[id][o], qry(1, 1, n, dfn[x], dfn[x] + siz[x] - 1));
      }
      for (auto x : pot[i]) mdf(1, 1, n, dfn[x], 1e9);
    }
  for (int i = 1; i <= Q; ++i)
    puts(ans[i][0] + ans[i][1] - 2 * ans[i][2] <= K ? "YES" : "NO");
  return 0;
}