Problem: Barney is searching for his dream girl. He lives in NYC. NYC has n junctions numbered from 1 to n and n - 1 roads connecting them. We will consider the NYC as a rooted tree with root being junction 1. m girls live in NYC, i-th of them lives along junction ci and her weight initially equals i pounds.

<image>

Barney consider a girl x to be better than a girl y if and only if: girl x has weight strictly less than girl y or girl x and girl y have equal weights and index of girl x living junction index is strictly less than girl y living junction index, i.e. cx < cy. Thus for any two girls one of them is always better than another one.

For the next q days, one event happens each day. There are two types of events:

  1. Barney goes from junction v to junction u. As a result he picks at most k best girls he still have not invited from junctions on his way and invites them to his house to test if one of them is his dream girl. If there are less than k not invited girls on his path, he invites all of them.
  2. Girls living along junctions in subtree of junction v (including v itself) put on some weight. As result, their weights increase by k pounds. 



Your task is for each event of first type tell Barney the indices of girls he will invite to his home in this event.

Input

The first line of input contains three integers n, m and q (1 ≤ n, m, q ≤ 105) — the number of junctions in NYC, the number of girls living in NYC and the number of events respectively.

The next n - 1 lines describes the roads. Each line contains two integers v and u (1 ≤ v, u ≤ n, v ≠ u) meaning that there is a road connecting junctions v and u .

The next line contains m integers c1, c2, ..., cm (1 ≤ ci ≤ n) — the girl's living junctions.

The next q lines describe the events in chronological order. Each line starts with an integer t (1 ≤ t ≤ 2) — type of the event .

If t = 1 then the line describes event of first type three integers v, u and k (1 ≤ v, u, k ≤ n) follow — the endpoints of Barney's path and the number of girls that he will invite at most.

Otherwise the line describes event of second type and two integers v and k (1 ≤ v ≤ n, 1 ≤ k ≤ 109) follow — the root of the subtree and value by which all the girls' weights in the subtree should increase.

Output

For each event of the first type, print number t and then t integers g1, g2, ..., gt in one line, meaning that in this event Barney will invite t girls whose indices are g1, ..., gt in the order from the best to the worst according to Barney's considerations.

Example

Input

5 7 11
3 5
2 3
4 3
1 4
4 1 4 5 4 1 4
2 4 3
1 2 1 2
1 4 2 1
2 2 10
2 1 10
1 2 4 1
1 2 3 4
2 5 2
2 4 9
1 3 5 2
1 1 2 3


Output

2 2 1 
1 3 
1 5 
0 
1 4 
2 6 7 

Note

For the first sample case:

<image>

Description of events:

  1. Weights of girls in subtree of junction 4 increase by 3. These girls have IDs: 1, 3, 5, 4, 7. 
  2. Barney goes from junction 2 to 1. Girls on his way have IDs 1, 2, 3, 5, 6, 7 with weights 4, 2, 6, 8, 6, 10 respectively. So, he invites girls 2 and 1. 
  3. Barney goes from junction 4 to junction 2. Girls on his way has IDs 3, 5, 7 with weights 6, 8, 10 respectively. So he invites girl 3. 
  4. Weight of girls in subtree of junction 2 increase by 10. There are no not invited girls, so nothing happens. 
  5. Weight of girls in subtree of junction 1 increase by 10. These girls (all girls left) have IDs: 4, 5, 6, 7. 
  6. Barney goes from junction 2 to junction 4. Girls on his way has IDs 5, 7 with weights 18, 20 respectively. So he invites girl 5. 
  7. Barney goes from junction 2 to junction 3. There is no girl on his way. 
  8. Weight of girls in subtree of junction 5 increase by 2. The only girl there is girl with ID 4. 
  9. Weight of girls in subtree of junction 4 increase by 9. These girls have IDs: 4, 6, 7. 
  10. Barney goes from junction 3 to junction 5. Only girl on his way is girl with ID 4. 
  11. Barney goes from junction 1 to junction 2. Girls on his way has IDs 6, 7 with weights 16, 29 respectively. 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const long long INF = (long long)2e14;
int n, m, q, t = 0, cnt, ts = 1;
vector<vector<int>> g;
vector<vector<long long>> weight;
vector<int> tin, tout, d, anc, top, heavy, subtree_size;
vector<int> query_list, chain, girl_pos, order;
vector<pair<int, int>> pos;
struct girl {
  long long w, psh;
  int i, cross;
  girl(long long _w = INF, int _i = 0, int _cross = 0) {
    w = _w;
    psh = 0;
    cross = _cross;
    i = _i;
  }
  bool operator<(const girl &x) const {
    return w < x.w || w == x.w && cross < x.cross;
  }
};
vector<girl> st;
void dfs(int v) {
  subtree_size[v] = 1;
  for (auto u : g[v]) {
    if (u != anc[v]) {
      d[u] = d[v] + 1;
      anc[u] = v;
      dfs(u);
      subtree_size[v] += subtree_size[u];
      if (heavy[v] == -1 || subtree_size[u] > subtree_size[heavy[v]])
        heavy[v] = u;
    }
  }
}
void dfs_hld(int v) {
  tin[v] = ++t;
  order.push_back(v);
  if (heavy[v] != -1) {
    dfs_hld(heavy[v]);
    chain[v] = chain[heavy[v]];
    top[chain[v]] = v;
  } else {
    chain[v] = cnt++;
    top.push_back(v);
  }
  for (auto u : g[v])
    if (u != heavy[v] && u != anc[v]) dfs_hld(u);
  tout[v] = ++t;
}
void build_tree() {
  int sz = 0;
  for (int i = 0; i < n; i++) {
    if (weight[i].empty()) weight[i].push_back(INF);
    sz += weight[i].size();
  }
  while (ts < sz) ts <<= 1;
  st.resize(2 * ts);
  sz = 0;
  for (int i = 0; i < n; i++) {
    int v = order[i];
    for (int j = 0; j < weight[v].size(); j++) {
      st[ts + sz++] = girl(weight[v][j], weight[v][j], v);
      if (weight[v][j] != INF) girl_pos[weight[v][j]] = sz;
    }
    if (weight[v][0] != INF) {
      pos[v].first = girl_pos[weight[v][0]];
      pos[v].second = girl_pos[weight[v].back()];
    } else
      pos[v].first = pos[v].second = sz;
  }
  for (int i = ts - 1; i >= 1; i--) st[i] = min(st[2 * i], st[2 * i + 1]);
}
void hld(int v) {
  tin.resize(n);
  tout.resize(n);
  d.resize(n);
  subtree_size.resize(n);
  heavy.resize(n, -1);
  anc.resize(n);
  chain.resize(n);
  pos.resize(n);
  anc[v] = -1;
  dfs(v);
  dfs_hld(v);
  build_tree();
}
void push(int v) {
  if (st[v].psh) {
    st[v].w += st[v].psh;
    if (v < ts) {
      st[2 * v].psh += st[v].psh;
      st[2 * v + 1].psh += st[v].psh;
    }
    st[v].psh = 0;
  }
}
void change_segment(int l, int r, int L, int R, long long dt, int v = 1) {
  push(v);
  if (l <= L && R <= r) {
    st[v].psh += dt;
    push(v);
    return;
  }
  if (l > R || r < L) return;
  change_segment(l, r, L, (L + R) / 2, dt, 2 * v);
  change_segment(l, r, (L + R) / 2 + 1, R, dt, 2 * v + 1);
  st[v] = min(st[2 * v], st[2 * v + 1]);
}
girl get_min(int l, int r, int L, int R, int v = 1) {
  push(v);
  if (l <= L && R <= r) return st[v];
  if (l > R || L > r) return girl();
  return min(get_min(l, r, L, (L + R) / 2, 2 * v),
             get_min(l, r, (L + R) / 2 + 1, R, 2 * v + 1));
}
void step_back(int i) {
  if (i > 1) step_back(i / 2);
  push(i);
}
void change_element(int i, long long val) {
  st[i + ts - 1].w = val;
  st[i + ts - 1].psh = 0;
  step_back((i + ts - 1) / 2);
  for (i = (i + ts - 1) / 2; i >= 1; i >>= 1) {
    push(2 * i);
    push(2 * i + 1);
    st[i] = min(st[2 * i], st[2 * i + 1]);
  }
}
int least_common_ancestor(int v, int u) {
  while (chain[v] != chain[u]) {
    if (d[top[chain[v]]] > d[top[chain[u]]])
      v = anc[top[chain[v]]];
    else
      u = anc[top[chain[u]]];
  }
  return d[v] < d[u] ? v : u;
}
void query(int v, int u, int k) {
  int lca = least_common_ancestor(v, u), tmp_v, tmp_u;
  while (k--) {
    tmp_v = v;
    tmp_u = u;
    girl tmp;
    while (chain[tmp_v] != chain[lca]) {
      tmp = min(
          tmp, get_min(pos[top[chain[tmp_v]]].first, pos[tmp_v].second, 1, ts));
      tmp_v = anc[top[chain[tmp_v]]];
    }
    tmp = min(tmp, get_min(pos[lca].first, pos[tmp_v].second, 1, ts));
    while (chain[tmp_u] != chain[lca]) {
      tmp = min(
          tmp, get_min(pos[top[chain[tmp_u]]].first, pos[tmp_u].second, 1, ts));
      tmp_u = anc[top[chain[tmp_u]]];
    }
    tmp = min(tmp, get_min(pos[lca].first, pos[tmp_u].second, 1, ts));
    if (tmp.w >= INF)
      break;
    else {
      query_list.push_back(tmp.i);
      change_segment(girl_pos[tmp.i], girl_pos[tmp.i], 1, ts, INF);
    }
  }
  cout << query_list.size() << ' ';
  for (auto x : query_list) cout << x + 1 << ' ';
  cout << '\n';
  query_list.clear();
}
void change_subtree(int i, int k) {
  int l = -1, r = n - 1;
  while (r - l > 1) {
    int m = (l + r) / 2;
    if (tin[order[m]] < tin[i])
      l = m;
    else
      r = m;
  }
  int L = 0, R = n;
  while (R - L > 1) {
    int M = (L + R) / 2;
    if (tin[order[M]] > tout[i])
      R = M;
    else
      L = M;
  }
  change_segment(pos[order[r]].first, pos[order[L]].second, 1, ts, k);
}
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> m >> q;
  g.resize(n);
  for (int i = 0, v, u; i < n - 1; i++) {
    cin >> u >> v;
    g[u - 1].push_back(v - 1);
    g[v - 1].push_back(u - 1);
  }
  weight.resize(n);
  girl_pos.resize(m);
  for (int i = 0, v; i < m; i++) {
    cin >> v;
    weight[v - 1].push_back(i);
  }
  hld(0);
  while (q--) {
    int t, i, j, k;
    cin >> t;
    if (t == 1) {
      cin >> i >> j >> k;
      if (k > n) k -= k / n * n;
      query(i - 1, j - 1, k);
    } else {
      cin >> i >> k;
      change_subtree(i - 1, k);
    }
  }
  return 0;
}