Problem: Recently Duff has been a soldier in the army. Malek is her commander.

Their country, Andarz Gu has n cities (numbered from 1 to n) and n - 1 bidirectional roads. Each road connects two different cities. There exist a unique path between any two cities.

There are also m people living in Andarz Gu (numbered from 1 to m). Each person has and ID number. ID number of i - th person is i and he/she lives in city number ci. Note that there may be more than one person in a city, also there may be no people living in the city.

<image>

Malek loves to order. That's why he asks Duff to answer to q queries. In each query, he gives her numbers v, u and a.

To answer a query:

Assume there are x people living in the cities lying on the path from city v to city u. Assume these people's IDs are p1, p2, ..., px in increasing order. 

If k = min(x, a), then Duff should tell Malek numbers k, p1, p2, ..., pk in this order. In the other words, Malek wants to know a minimums on that path (or less, if there are less than a people).

Duff is very busy at the moment, so she asked you to help her and answer the queries.

Input

The first line of input contains three integers, n, m and q (1 ≤ n, m, q ≤ 105).

The next n - 1 lines contain the roads. Each line contains two integers v and u, endpoints of a road (1 ≤ v, u ≤ n, v ≠ u).

Next line contains m integers c1, c2, ..., cm separated by spaces (1 ≤ ci ≤ n for each 1 ≤ i ≤ m).

Next q lines contain the queries. Each of them contains three integers, v, u and a (1 ≤ v, u ≤ n and 1 ≤ a ≤ 10).

Output

For each query, print numbers k, p1, p2, ..., pk separated by spaces in one line.

Examples

Input

5 4 5
1 3
1 2
1 4
4 5
2 1 4 3
4 5 6
1 5 2
5 5 10
2 3 3
5 3 1


Output

1 3
2 2 3
0
3 1 2 4
1 2

Note

Graph of Andarz Gu in the sample case is as follows (ID of people in each city are written next to them):

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
void __print(int first) { cerr << first; }
void __print(long first) { cerr << first; }
void __print(long long first) { cerr << first; }
void __print(unsigned first) { cerr << first; }
void __print(unsigned long first) { cerr << first; }
void __print(unsigned long long first) { cerr << first; }
void __print(float first) { cerr << first; }
void __print(double first) { cerr << first; }
void __print(long double first) { cerr << first; }
void __print(char first) { cerr << '\'' << first << '\''; }
void __print(const char *first) { cerr << '\"' << first << '\"'; }
void __print(const string &first) { cerr << '\"' << first << '\"'; }
void __print(bool first) { cerr << (first ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &first) {
  cerr << '{';
  __print(first.first);
  cerr << ',';
  __print(first.second);
  cerr << '}';
}
template <typename T>
void __print(const T &first) {
  int f = 0;
  cerr << '{';
  for (auto &i : first) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
vector<vector<int> > vect;
vector<int> req_people[100010][25], city[100010];
int par[100010][25], hgt[100010];
void bfs(int parent, int node, int height) {
  par[node][0] = parent;
  for (auto &node1 : city[parent]) req_people[node][0].push_back(node1);
  hgt[node] = height;
  for (auto &child : vect[node]) {
    if (child != parent) {
      bfs(node, child, height + 1);
    }
  }
}
int LCA(int u, int v) {
  if (hgt[u] < hgt[v]) swap(u, v);
  int diff = abs(hgt[v] - hgt[u]);
  for (int j = 21; j >= 0; j--) {
    int temp = 1 << j;
    if (temp <= diff) {
      u = par[u][j];
      diff -= temp;
    }
  }
  for (int j = 21; j >= 0; j--) {
    if (par[u][j] != par[v][j]) {
      u = par[u][j];
      v = par[v][j];
    }
  }
  if (u == v)
    return u;
  else
    return par[u][0];
}
void fill_city(int i, int j) {
  for (auto &node : req_people[par[i][j - 1]][j - 1])
    req_people[i][j].push_back(node);
  for (auto &node : req_people[i][j - 1]) req_people[i][j].push_back(node);
  sort(req_people[i][j].begin(), req_people[i][j].end());
  while (req_people[i][j].size() > 10) req_people[i][j].pop_back();
}
void merge(vector<int> &a, vector<int> &b) {
  int cnt = 0, i = 0, j = 0;
  vector<int> temp;
  while (i < a.size() && j < b.size() && cnt <= 10) {
    if (a[i] < b[j])
      temp.push_back(a[i++]);
    else
      temp.push_back(b[j++]);
    cnt++;
  }
  while (i < a.size() && cnt <= 10) temp.push_back(a[i++]), cnt++;
  while (j < b.size() && cnt <= 10) temp.push_back(b[j++]), cnt++;
  a = temp;
}
void calc(int u, int v, vector<int> &ans, int add) {
  int diff = abs(hgt[v] - hgt[u]) - add;
  for (int j = 20; j >= 0; j--) {
    int temp = 1 << j;
    if (temp <= diff) {
      merge(ans, req_people[u][j]);
      u = par[u][j];
      diff -= temp;
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, m, q;
  cin >> n >> m >> q;
  vect.resize(n + 1);
  int node, u, v;
  for (int i = 1; i < n; i++) {
    cin >> u >> v;
    vect[u].push_back(v);
    vect[v].push_back(u);
  }
  for (int i = 1; i < m + 1; i++) {
    cin >> node;
    city[node].push_back(i);
  }
  bfs(0, 1, 1);
  for (int j = 1; j < 20; j++) {
    for (int i = 1; i < n + 1; i++) {
      par[i][j] = par[par[i][j - 1]][j - 1];
      fill_city(i, j);
    }
  }
  while (q--) {
    vector<int> ans;
    int u, v, a;
    cin >> u >> v >> a;
    if (hgt[u] > hgt[v]) swap(u, v);
    int lca = LCA(u, v);
    calc(u, lca, ans, 0);
    calc(v, lca, ans, 1);
    ;
    merge(ans, city[u]);
    if (u != v) merge(ans, city[v]);
    ;
    cout << min((int)ans.size(), a) << " ";
    for (int i = 0; i < min((int)ans.size(), a); i++) cout << ans[i] << " ";
    cout << "\n";
  }
}