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 int gcd(long long int a, long long int b) {
  return (b == 0LL ? a : gcd(b, a % b));
}
long double dist(long double x, long double arayikhalatyan, long double x2,
                 long double y2) {
  return sqrt((x - x2) * (x - x2) +
              (arayikhalatyan - y2) * (arayikhalatyan - y2));
}
long long int S(long long int a) { return (a * (a + 1LL)) / 2; }
mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
char vow[] = {'a', 'e', 'i', 'o', 'u'};
int dx[] = {0, -1, 0, 1, -1, -1, 1, 1, 0};
int dy[] = {-1, 0, 1, 0, -1, 1, -1, 1, 0};
const int N = 2e6 + 30;
const long long int mod = 1e9 + 7;
const long double pi = acos(-1);
const int T = 238;
const long double e = 1e-13;
long long int bp(long long int a, long long int b = mod - 2LL) {
  long long int ret = 1;
  while (b) {
    if (b & 1) ret *= a, ret %= mod;
    a *= a;
    a %= mod;
    b >>= 1;
  }
  return ret;
}
ostream& operator<<(ostream& c, pair<int, int> a) {
  c << a.first << " " << a.second;
  return c;
}
struct pt {
  long long int x, y;
  int ind;
  int bl;
  bool operator==(const pt& a) { return ind == a.ind; }
  bool operator<(const pt& b) {
    if (x == b.x) return y < b.y;
    return x < b.x;
  }
};
int n, k, t;
int p[N], xr[N], pr[N][20];
bool col[N], cl[N];
queue<pair<int, int> > q;
vector<int> g[N];
int gp(int x) {
  if (p[x] == x) return x;
  return p[x] = gp(p[x]);
}
void dfs(int v, int par, int xx) {
  xr[v] = xx;
  pr[v][0] = par;
  for (auto p : g[v]) {
    if (p == par) continue;
    dfs(p, v, xx + 1);
  }
}
int walk(int u, int d) {
  for (int i = 0; i < 20; i++)
    if (d & (1 << i)) u = pr[u][i];
  return u;
}
int lca(int v, int u) {
  if (xr[v] > xr[u]) swap(u, v);
  u = walk(u, xr[u] - xr[v]);
  if (u == v) return u;
  for (int i = 19; i >= 0; i--) {
    if (pr[u][i] == pr[v][i]) continue;
    u = pr[u][i];
    v = pr[v][i];
  }
  return pr[u][0];
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n >> k >> t;
  for (int i = 0; i < n - 1; i++) {
    int a, b;
    cin >> a >> b;
    g[a].push_back(n + i + 1);
    g[n + i + 1].push_back(a);
    g[b].push_back(n + i + 1);
    g[n + i + 1].push_back(b);
  }
  for (int i = 0; i < t; i++) {
    int x;
    cin >> x;
    q.push({x, 0});
    cl[x] = col[x] = 1;
  }
  dfs(1, 1, 0);
  for (int i = 1; i < 20; i++)
    for (int j = 1; j < 2 * n; j++)
      pr[j][i] = pr[pr[j][i - 1]][i - 1], p[j] = j;
  while (!q.empty()) {
    int v = q.front().first;
    int d = q.front().second;
    q.pop();
    if (d == k) continue;
    for (auto p1 : g[v]) {
      if (col[p1]) {
        p[gp(p1)] = gp(v);
      } else {
        col[p1] = 1;
        q.push(make_pair(p1, d + 1));
        p[p1] = gp(v);
      }
    }
  }
  cin >> t;
  while (t--) {
    int a, b;
    cin >> a >> b;
    int c = lca(a, b);
    if (xr[a] + xr[b] - xr[c] - xr[c] <= k + k) {
      cout << "YES\n";
      continue;
    }
    if (xr[a] < xr[b]) swap(a, b);
    a = walk(a, k);
    if (xr[b] - xr[c] < k)
      b = walk(a, xr[a] - xr[c] - k + xr[b] - xr[c]);
    else
      b = walk(b, k);
    if (gp(a) == gp(b))
      cout << "YES\n";
    else
      cout << "NO\n";
  }
  return 0;
}