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;
template <typename T>
inline bool chkmin(T &a, const T &b) {
  return a > b ? a = b, 1 : 0;
}
template <typename T>
inline bool chkmax(T &a, const T &b) {
  return a < b ? a = b, 1 : 0;
}
const int oo = 0x3f3f3f3f;
const int __buffsize = 100000;
char __buff[__buffsize];
char *__buffs, *__buffe;
template <typename T>
inline T &Read(T &first) {
  static char c;
  while (1) {
    c = (__buffs == __buffe ? fread(__buff, 1, __buffsize, stdin),
         __buffe = __buff + __buffsize, *((__buffs = __buff)++) : *(__buffs++));
    if (c == '-' || (c >= '0' && c <= '9')) break;
  }
  bool flag = c == '-';
  first = flag ? 0 : c - '0';
  while (1) {
    c = (__buffs == __buffe ? fread(__buff, 1, __buffsize, stdin),
         __buffe = __buff + __buffsize, *((__buffs = __buff)++) : *(__buffs++));
    if (c < '0' || c > '9') break;
    (first *= 10) += c - '0';
  }
  if (flag) first = -first;
  return first;
}
const int maxn = 100100, maxm = 100100;
struct edge {
  int id, nxt;
  edge() {}
  edge(int _id, int _nxt) : id(_id), nxt(_nxt) {}
};
edge e[(maxn << 1) + 5];
int st[maxn + 5], en = 0;
inline void add_edge(int first, int second) {
  e[en] = edge(second, st[first]), st[first] = en++;
}
inline void add_biedge(int first, int second) {
  add_edge(first, second), add_edge(second, first);
}
int n, m, qn;
int fa[maxn + 5];
int sz[maxn + 5], Max[maxn + 5], cur[maxn + 5];
int dfs_seq[maxn + 5], dfs_tot;
int dep[maxn + 5];
void dfs(int first) {
  fa[first] = -1;
  dep[first] = 0;
  int u = first;
  bool flag = 0;
  while (u != -1) {
    if (!flag) {
      dfs_seq[dfs_tot++] = u;
      sz[u] = 1;
      Max[u] = -1;
      cur[u] = st[u];
      flag = 1;
    }
    for (int &i = cur[u]; i != -1; i = e[i].nxt) {
      const int &v = e[i].id;
      if (v == fa[u]) continue;
      dep[v] = dep[u] + 1;
      fa[v] = u;
      u = v;
      i = e[i].nxt;
      flag = 0;
      break;
    }
    if (flag) {
      int v = u;
      u = fa[u];
      if (u != -1) {
        sz[u] += sz[v];
        if (Max[u] == -1 || sz[v] > sz[Max[u]]) Max[u] = v;
      }
    }
  }
}
int hseq[maxn + 5];
int dfn[maxn + 5], End[maxn + 5];
int tot = 0;
void heavy_first_dfs(int first) {
  hseq[dfn[first] = tot++] = first;
  if (Max[first] != -1) heavy_first_dfs(Max[first]);
  for (int i = st[first]; i != -1; i = e[i].nxt) {
    int second = e[i].id;
    if (second == fa[first] || second == Max[first]) continue;
    heavy_first_dfs(second);
  }
  End[first] = tot;
}
int now;
int c[maxm + 5];
inline void upd(pair<long long, int> &a, const pair<long long, int> &b) {
  if (a.first > b.first)
    a = b;
  else if (a.first == b.first && ~a.second && c[b.second] < c[a.second])
    a = b;
}
struct node {
  node *c[2];
  pair<long long, int> Min;
  long long label;
  node() : Min(make_pair(LLONG_MAX, -1)) { memset(c, 0, sizeof c); }
  void update() {
    Min = make_pair(LLONG_MAX, -1);
    for (int i = (0), i_end_ = (2); i < i_end_; ++i)
      if (c[i]) upd(Min, c[i]->Min);
  }
  void flag_label(const long long &_label) {
    label += _label;
    if (Min.first != LLONG_MAX) Min.first += _label;
  }
  void push_down() {
    if (label) {
      for (int i = (0), i_end_ = (2); i < i_end_; ++i)
        if (c[i]) c[i]->flag_label(label);
      label = 0;
    }
  }
};
const int max0 = 100000;
node *nd_pool;
int nd_res = 0;
node *newnode() {
  if (!nd_res) nd_pool = new node[max0], nd_res = max0;
  return nd_pool + (--nd_res);
}
int seg_x, seg_y, seg_z;
long long seg_delta;
pair<long long, int> seg_ret;
vector<int> all[maxn + 5];
void build(node *&rt, int l, int r) {
  if (!rt) rt = newnode();
  if (r - l <= 1) {
    if (all[hseq[l]].empty())
      rt->Min = make_pair(LLONG_MAX, -1);
    else
      rt->Min = make_pair(all[hseq[l]].back(), all[hseq[l]].back());
    return;
  }
  int mid = (l + r) >> 1;
  build(rt->c[0], l, mid);
  build(rt->c[1], mid, r);
  rt->update();
}
void add(node *rt, int l, int r) {
  if (seg_x <= l && r <= seg_y) {
    rt->flag_label(seg_z);
    return;
  }
  int mid = (l + r) >> 1;
  rt->push_down();
  if (seg_x < mid) add(rt->c[0], l, mid);
  if (seg_y > mid) add(rt->c[1], mid, r);
  rt->update();
}
void del(node *rt, int l, int r) {
  if (r - l <= 1) {
    if (seg_delta == LLONG_MAX)
      rt->Min.first = LLONG_MAX;
    else
      rt->Min.first += seg_delta;
    rt->Min.second = all[hseq[l]].empty() ? -1 : all[hseq[l]].back();
    return;
  }
  int mid = (l + r) >> 1;
  rt->push_down();
  if (seg_x < mid)
    del(rt->c[0], l, mid);
  else
    del(rt->c[1], mid, r);
  rt->update();
}
void query(node *&rt, int l, int r) {
  if (seg_x <= l && r <= seg_y) {
    upd(seg_ret, rt->Min);
    return;
  }
  int mid = (l + r) >> 1;
  rt->push_down();
  if (seg_x < mid) query(rt->c[0], l, mid);
  if (seg_y > mid) query(rt->c[1], mid, r);
}
node *rt;
int top[maxn + 5];
inline int lca(int first, int second) {
  while (top[first] != top[second]) {
    if (dep[top[first]] > dep[top[second]]) swap(first, second);
    second = fa[top[second]];
  }
  return dep[first] < dep[second] ? first : second;
}
inline void query(int first, int second) {
  int d = lca(first, second);
  seg_z = 1;
  while (1) {
    int nxt = dep[top[first]] < dep[d] ? d : top[first];
    seg_x = dfn[nxt];
    seg_y = dfn[first] + 1;
    query(rt, 0, n);
    if (nxt == d) break;
    first = fa[nxt];
  }
  while (1) {
    int nxt = dep[top[second]] < dep[d] ? d : top[second];
    seg_x = dfn[nxt];
    seg_y = dfn[second] + 1;
    query(rt, 0, n);
    if (nxt == d) break;
    second = fa[nxt];
  }
}
int main() {
  memset(st, -1, sizeof st), en = 0;
  Read(n), Read(m), Read(qn);
  for (int i = (0), i_end_ = (n - 1); i < i_end_; ++i) {
    int u, v;
    Read(u), Read(v), --u, --v;
    add_biedge(u, v);
  }
  for (int i = (0), i_end_ = (m); i < i_end_; ++i) Read(c[i]), --c[i];
  for (int i = m - 1; i >= 0; --i) all[c[i]].push_back(i);
  dfs(0);
  top[0] = 0;
  for (int i = (1), i_end_ = (n); i < i_end_; ++i)
    if (sz[dfs_seq[i]] && Max[fa[dfs_seq[i]]] == dfs_seq[i])
      top[dfs_seq[i]] = top[fa[dfs_seq[i]]];
    else
      top[dfs_seq[i]] = dfs_seq[i];
  heavy_first_dfs(0);
  build(rt, 0, n);
  for (int i = (0), i_end_ = (qn); i < i_end_; ++i) {
    int ty;
    Read(ty);
    if (ty == 1) {
      int u, v, K;
      Read(u), Read(v), Read(K);
      --u, --v;
      vector<int> ans;
      while (K--) {
        seg_ret = make_pair(LLONG_MAX, -1);
        query(u, v);
        if (!~seg_ret.second) break;
        ans.push_back(seg_ret.second);
        seg_x = dfn[c[seg_ret.second]];
        vector<int> &tmp = all[c[seg_ret.second]];
        tmp.pop_back();
        if (tmp.empty())
          seg_delta = LLONG_MAX;
        else
          seg_delta = tmp.back() - seg_ret.second;
        del(rt, 0, n);
      }
      printf("%d", (int((ans).size())));
      for (auto first : ans) printf(" %d", first + 1);
      printf("\n");
    } else if (ty == 2) {
      int u, K;
      Read(u), Read(K), --u;
      seg_x = dfn[u], seg_y = End[u], seg_z = K;
      add(rt, 0, n);
    }
  }
  return 0;
}