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 N = 2e5 + 5;
int n, k, r, x, y, i, j, anc[20][N], dep[N], g[N], a[N], bel[N], q;
bool bb[N];
int gfa(int x) { return g[x] == x ? x : g[x] = gfa(g[x]); }
vector<int> e[N];
void dfs(int x, int fa) {
  anc[0][x] = fa;
  dep[x] = dep[fa] + 1;
  for (int y : e[x])
    if (y != fa) dfs(y, x);
}
inline int lca(int x, int y) {
  if (dep[x] > dep[y]) swap(x, y);
  int dt = dep[y] - dep[x], i;
  for (i = 0; (1 << i) <= dt; ++i)
    if (dt >> i & 1) y = anc[i][y];
  if (x == y) return x;
  for (i = 19; i >= 0; --i)
    if (anc[i][x] != anc[i][y]) x = anc[i][x], y = anc[i][y];
  return anc[0][x];
}
inline int dis(int x, int y) { return dep[x] + dep[y] - dep[lca(x, y)] * 2; }
struct node {
  int ch[2], fa;
  pair<int, int> v, s;
} t[N];
inline void upd(const int& x) {
  t[x].s = min(min(t[t[x].ch[0]].s, t[t[x].ch[1]].s), t[x].v);
}
inline int dir(const int& x, const int& y) { return t[x].ch[1] == y; }
inline void setc(const int& x, const int& y, const int& o) {
  t[x].ch[o] = y;
  t[y].fa = x;
}
inline bool nrt(const int& x) {
  return t[t[x].fa].ch[0] == x || t[t[x].fa].ch[1] == x;
}
inline void rotate(int x) {
  int y = t[x].fa, z = t[y].fa, o;
  if (nrt(y)) setc(z, x, dir(z, y));
  t[x].fa = z;
  o = dir(y, x);
  setc(y, t[x].ch[!o], o);
  setc(x, y, !o);
  upd(y);
}
inline void splay(int x) {
  for (; nrt(x); rotate(x)) {
    int y = t[x].fa, z = t[y].fa;
    if (nrt(y)) rotate(dir(z, y) == dir(y, x) ? y : x);
  }
  upd(x);
}
inline void access(int x) {
  int y = 0, ox = x;
  for (; x; x = t[x].fa) splay(x), setc(x, y, 1), upd(x), y = x;
  splay(ox);
}
bool cov[N];
inline void mdy(int x) {
  access(x);
  for (int y = x; y && !cov[y]; y = anc[0][y])
    cov[y] = 1, splay(y), t[y].v = {dep[x] - dep[y] * 2, x}, upd(y);
}
inline int ask(int x) {
  access(x);
  return t[x].s.first + dep[x] <= k ? t[x].s.second : 0;
}
int main() {
  for (i = 0; i < N; ++i) t[i].v = t[i].s = {1 << 25, 0};
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> k >> r;
  for (i = 1; i < n; ++i) cin >> x >> y, e[x].push_back(y), e[y].push_back(x);
  dfs(1, 0);
  for (i = 1; i < 20; ++i)
    for (j = 1; j <= n; ++j) anc[i][j] = anc[i - 1][anc[i - 1][j]];
  for (i = 1; i <= n; ++i) a[i] = i;
  sort(a + 1, a + n + 1, [&](int x, int y) { return dep[x] < dep[y]; });
  for (; r--;) cin >> x, bb[x] = 1;
  for (i = 1; i <= n; ++i) t[i].fa = anc[0][i];
  for (i = 1; i <= n; ++i) {
    x = a[i];
    y = ask(x);
    if (bb[x])
      g[x] = y ? y : x, bel[x] = gfa(x), mdy(x);
    else
      bel[x] = y ? gfa(y) : 0;
  }
  for (cin >> q; q--;) {
    cin >> x >> y;
    int xx = bel[x], yy = bel[y];
    cout << (dis(x, y) <= k || (xx && yy && xx == yy) ||
                     (xx && dis(xx, y) <= k) || (yy && dis(yy, x) <= k)
                 ? "YES"
                 : "NO")
         << '\n';
  }
  return 0;
}