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;
static int const inf = 100100;
static inline void init_buffer(int *const buffer) {
  for (int j = 0; j < 10; ++j) {
    buffer[j] = inf;
  }
}
struct Node {
  int people[10];
  int links[18];
  int mins[18][10];
  int dist;
  Node() {
    init_buffer(people);
    for (int i = 0; i < 18; ++i) {
      links[i] = 1;
      for (int j = 0; j < 10; ++j) {
        mins[i][j] = inf;
      }
    }
  }
  void add_person(int person) {
    for (int i = 0; i < 10; ++i) {
      if (person < people[i]) {
        swap(person, people[i]);
      }
    }
  }
};
static Node nodes[100100];
static vector<int> tree[100100];
static inline void init_buffer(int *const buffer, int v) {
  Node const &node = nodes[v];
  for (int j = 0; j < 10; ++j) {
    buffer[j] = node.people[j];
  }
}
static inline void init_buffer(int *const buffer, int const *const src) {
  for (int j = 0; j < 10; ++j) {
    buffer[j] = src[j];
  }
}
static inline void merge(int const *a, int const *b, int *const dst) {
  for (int i = 0; i < 10; ++i) {
    if (*a < *b) {
      dst[i] = *a;
      ++a;
    } else {
      if (*a == *b) {
        ++a;
      }
      dst[i] = *b;
      ++b;
    }
  }
}
static inline void dfs(int const n, int const p, int const dist) {
  Node &node = nodes[n];
  node.links[0] = p;
  merge(node.people, nodes[p].people, node.mins[0]);
  for (int i = 1; i < 18; ++i) {
    Node const &halfway_node = nodes[node.links[i - 1]];
    node.links[i] = halfway_node.links[i - 1];
    merge(node.mins[i - 1], halfway_node.mins[i - 1], node.mins[i]);
  }
  node.dist = dist;
  size_t const numof_children = tree[n].size();
  for (size_t i = 0; i < numof_children; ++i) {
    int const child = tree[n][i];
    if (child != p) {
      dfs(child, n, dist + 1);
    }
  }
}
static inline void step(int &u, int *const buffer, int i) {
  int tmp_buffer[10];
  init_buffer(tmp_buffer, buffer);
  Node const &node = nodes[u];
  merge(node.mins[i], tmp_buffer, buffer);
  u = node.links[i];
}
static inline void walk(int &u, int *const buffer, int diff) {
  int i = 0;
  while (diff) {
    if (diff & 1) {
      step(u, buffer, i);
    }
    diff /= 2;
    ++i;
  }
}
static inline void query(int u, int v, int *const buffer) {
  if (nodes[u].dist < nodes[v].dist) {
    swap(u, v);
  }
  int const diff = nodes[u].dist - nodes[v].dist;
  int u_buffer[10];
  int v_buffer[10];
  init_buffer(u_buffer, u);
  init_buffer(v_buffer, v);
  walk(u, u_buffer, diff);
  if (u == v) {
    init_buffer(buffer, u_buffer);
    return;
  }
  for (int i = 17; i >= 0; --i) {
    if (nodes[u].links[i] != nodes[v].links[i]) {
      step(u, u_buffer, i);
      step(v, v_buffer, i);
    }
  }
  step(u, u_buffer, 0);
  step(v, v_buffer, 0);
  merge(u_buffer, v_buffer, buffer);
}
int main() {
  int n, m, q;
  scanf("%d%d%d", &n, &m, &q);
  for (int i = 1, u, v; i < n; ++i) {
    scanf("%d%d", &u, &v);
    tree[u].push_back(v);
    tree[v].push_back(u);
  }
  for (int i = 1, c; i <= m; ++i) {
    scanf("%d", &c);
    nodes[c].add_person(i);
  }
  dfs(1, 1, 0);
  int buffer[10];
  for (int i = 0, u, v, a; i < q; ++i) {
    scanf("%d%d%d", &u, &v, &a);
    init_buffer(buffer);
    query(u, v, buffer);
    int x = 0;
    for (; x < 10; ++x) {
      if (buffer[x] == inf) {
        break;
      }
    }
    int const k = min(x, a);
    printf("%d", k);
    for (int j = 0; j < k; ++j) {
      printf(" %d", buffer[j]);
    }
    printf("\n");
  }
  return 0;
}