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;
static const int INF = 0x3f3f3f3f;
static const long long INFL = 0x3f3f3f3f3f3f3f3fLL;
template <typename T, typename U>
static void amin(T &x, U y) {
  if (y < x) x = y;
}
template <typename T, typename U>
static void amax(T &x, U y) {
  if (x < y) x = y;
}
struct HeavyLightDecomposition {
  vector<int> colors, positions;
  vector<int> lengths, parents, branches;
  vector<int> parentnodes, depths;
  vector<int> sortednodes, offsets;
  vector<int> lefts, rights;
  struct BuildDFSState {
    int i, len, parent;
    BuildDFSState() {}
    BuildDFSState(int i_, int l, int p) : i(i_), len(l), parent(p) {}
  };
  void build(const vector<vector<int>> &g, int root) {
    int n = g.size();
    colors.assign(n, -1);
    positions.assign(n, -1);
    lengths.clear();
    parents.clear();
    branches.clear();
    parentnodes.assign(n, -1);
    depths.assign(n, -1);
    sortednodes.clear();
    offsets.clear();
    lefts.assign(n, -1);
    rights.assign(n, -1);
    vector<int> subtreesizes;
    measure(g, root, subtreesizes);
    depths[root] = 0;
    vector<BuildDFSState> s;
    s.push_back(BuildDFSState(root, 0, -1));
    while (!s.empty()) {
      BuildDFSState t = s.back();
      s.pop_back();
      int i = t.i, len = t.len;
      int index = sortednodes.size();
      int color = lengths.size();
      if (t.parent == -3) {
        rights[i] = index;
        continue;
      }
      if (t.parent != -2) {
        assert(parents.size() == color);
        parents.push_back(t.parent);
        branches.push_back(len);
        offsets.push_back(index);
        len = 0;
      }
      colors[i] = color;
      positions[i] = len;
      lefts[i] = index;
      sortednodes.push_back(i);
      int maxsize = -1, maxj = -1;
      for (auto j = (g[i]).begin(); j != (g[i]).end(); ++j)
        if (colors[*j] == -1) {
          if (maxsize < subtreesizes[*j]) {
            maxsize = subtreesizes[*j];
            maxj = *j;
          }
          parentnodes[*j] = i;
          depths[*j] = depths[i] + 1;
        }
      s.push_back(BuildDFSState(i, -1, -3));
      if (maxj == -1) {
        lengths.push_back(len + 1);
      } else {
        for (auto j = (g[i]).begin(); j != (g[i]).end(); ++j)
          if (colors[*j] == -1 && *j != maxj)
            s.push_back(BuildDFSState(*j, len, color));
        s.push_back(BuildDFSState(maxj, len + 1, -2));
      }
    }
  }
  void get(int v, int &c, int &p) const {
    c = colors[v];
    p = positions[v];
  }
  bool go_up(int &c, int &p) const {
    p = branches[c];
    c = parents[c];
    return c != -1;
  }
  inline const int *nodesBegin(int c) const {
    return &sortednodes[0] + offsets[c];
  }
  inline const int *nodesEnd(int c) const {
    return &sortednodes[0] +
           (c + 1 == offsets.size() ? sortednodes.size() : offsets[c + 1]);
  }

 private:
  void measure(const vector<vector<int>> &g, int root,
               vector<int> &out_subtreesizes) const {
    out_subtreesizes.assign(g.size(), -1);
    vector<int> s;
    s.push_back(root);
    while (!s.empty()) {
      int i = s.back();
      s.pop_back();
      if (out_subtreesizes[i] == -2) {
        int s = 1;
        for (auto j = (g[i]).begin(); j != (g[i]).end(); ++j)
          if (out_subtreesizes[*j] != -2) s += out_subtreesizes[*j];
        out_subtreesizes[i] = s;
      } else {
        s.push_back(i);
        for (auto j = (g[i]).begin(); j != (g[i]).end(); ++j)
          if (out_subtreesizes[*j] == -1) s.push_back(*j);
        out_subtreesizes[i] = -2;
      }
    }
  }
};
int lowest_common_ancestor(const HeavyLightDecomposition &hld, int x, int y) {
  int cx, px, cy, py;
  hld.get(x, cx, px);
  hld.get(y, cy, py);
  while (cx != cy) {
    if (hld.depths[*hld.nodesBegin(cx)] < hld.depths[*hld.nodesBegin(cy)])
      hld.go_up(cy, py);
    else
      hld.go_up(cx, px);
  }
  return hld.nodesBegin(cx)[min(px, py)];
}
void get_route(const HeavyLightDecomposition &hld, int u, int v,
               vector<pair<int, pair<int, int>>> &route) {
  route.clear();
  int w = lowest_common_ancestor(hld, u, v), wc, wp;
  hld.get(w, wc, wp);
  for (int(uv) = 0; (uv) < (int)(2); ++(uv)) {
    int c, p;
    hld.get(uv == 0 ? u : v, c, p);
    int sz = route.size();
    while (1) {
      int top = c == wc ? wp + uv : 0;
      pair<int, int> q =
          uv == 0 ? make_pair(p + 1, top) : make_pair(top, p + 1);
      if (q.first != q.second) {
        if (uv == 1 && c == wc) {
          assert(route[sz - 1].first == c);
          assert(route[sz - 1].second.first - route[sz - 1].second.second == 1);
          assert(route[sz - 1].second.first == q.first);
          route[sz - 1].second =
              make_pair(route[sz - 1].second.second, q.second);
        } else {
          route.push_back(make_pair(c, q));
        }
      }
      if (c == wc) break;
      hld.go_up(c, p);
    }
    if (uv == 1) reverse(route.begin() + sz, route.end());
  }
}
struct Sum {
  long long weight;
  int c;
  int i;
  Sum() : weight(INFL), c(-1), i(-1) {}
  Sum(long long w, int c, int i) : weight(w), c(c), i(i) {}
  Sum(const Sum &val, int pos) : Sum(val) {}
  bool operator<(const Sum &that) const {
    if (weight != that.weight)
      return weight < that.weight;
    else
      return c < that.c;
  }
  Sum &operator+=(const Sum &that) {
    amin(*this, that);
    return *this;
  }
  Sum operator+(const Sum &that) const { return Sum(*this) += that; }
};
struct Add {
  long long k;
  Add(long long k = 0) : k(k) {}
  Add &operator+=(const Add &that) {
    k += that.k;
    return *this;
  }
  void addToVal(Sum &val, int pos) const { addToSum(val, pos, pos + 1); }
  void addToSum(Sum &sum, int left, int right) const {
    if (sum.weight != INFL) sum.weight += k;
  }
};
struct SegmentTree {
  vector<Sum> leafs;
  vector<Sum> nodes;
  vector<Add> add;
  vector<int> leftpos, rightpos;
  int n, n2;
  void init(int n_, const Sum &v = Sum()) { init(vector<Sum>(n_, v)); }
  void init(const vector<Sum> &u) {
    n = 1;
    while (n < (int)u.size()) n *= 2;
    n2 = (n - 1) / 2 + 1;
    leafs = u;
    leafs.resize(n, Sum());
    nodes.resize(n);
    for (int i = n - 1; i >= n2; --i)
      nodes[i] = Sum(leafs[i * 2 - n], i * 2 - n) +
                 Sum(leafs[i * 2 + 1 - n], i * 2 + 1 - n);
    for (int i = n2 - 1; i > 0; --i) nodes[i] = nodes[i * 2] + nodes[i * 2 + 1];
    add.assign(n, Add());
    leftpos.resize(n);
    rightpos.resize(n);
    for (int i = n - 1; i >= n2; --i) {
      leftpos[i] = i * 2 - n;
      rightpos[i] = (i * 2 + 1 - n) + 1;
    }
    for (int i = n2 - 1; i > 0; --i) {
      leftpos[i] = leftpos[i * 2];
      rightpos[i] = rightpos[i * 2 + 1];
    }
  }
  Sum get(int i) {
    int indices[128];
    int k = getIndices(indices, i, i + 1);
    propagateRange(indices, k);
    return leafs[i];
  }
  Sum getRangeCommutative(int i, int j) {
    int indices[128];
    int k = getIndices(indices, i, j);
    propagateRange(indices, k);
    Sum res = Sum();
    for (int l = i + n, r = j + n; l < r; l >>= 1, r >>= 1) {
      if (l & 1) res += sum(l++);
      if (r & 1) res += sum(--r);
    }
    return res;
  }
  Sum getRange(int i, int j) {
    int indices[128];
    int k = getIndices(indices, i, j);
    propagateRange(indices, k);
    Sum res = Sum();
    for (; i && i + (i & -i) <= j; i += i & -i) res += sum((n + i) / (i & -i));
    for (k = 0; i < j; j -= j & -j) indices[k++] = (n + j) / (j & -j) - 1;
    while (--k >= 0) res += sum(indices[k]);
    return res;
  }
  void set(int i, const Sum &x) {
    int indices[128];
    int k = getIndices(indices, i, i + 1);
    propagateRange(indices, k);
    leafs[i] = x;
    mergeRange(indices, k);
  }
  void addToRange(int i, int j, const Add &x) {
    if (i >= j) return;
    int indices[128];
    int k = getIndices(indices, i, j);
    propagateRange(indices, k);
    int l = i + n, r = j + n;
    if (l & 1) {
      int p = (l++) - n;
      x.addToVal(leafs[p], p);
    }
    if (r & 1) {
      int p = (--r) - n;
      x.addToVal(leafs[p], p);
    }
    for (l >>= 1, r >>= 1; l < r; l >>= 1, r >>= 1) {
      if (l & 1) add[l++] += x;
      if (r & 1) add[--r] += x;
    }
    mergeRange(indices, k);
  }

 private:
  int getIndices(int indices[], int i, int j) const {
    int k = 0, l, r;
    if (i >= j) return 0;
    for (l = (n + i) >> 1, r = (n + j - 1) >> 1; l != r; l >>= 1, r >>= 1) {
      indices[k++] = l;
      indices[k++] = r;
    }
    for (; l; l >>= 1) indices[k++] = l;
    return k;
  }
  void propagateRange(int indices[], int k) {
    for (int i = k - 1; i >= 0; --i) propagate(indices[i]);
  }
  void mergeRange(int indices[], int k) {
    for (int i = 0; i < k; ++i) merge(indices[i]);
  }
  inline void propagate(int i) {
    if (i >= n) return;
    add[i].addToSum(nodes[i], leftpos[i], rightpos[i]);
    if (i * 2 < n) {
      add[i * 2] += add[i];
      add[i * 2 + 1] += add[i];
    } else {
      add[i].addToVal(leafs[i * 2 - n], i * 2 - n);
      add[i].addToVal(leafs[i * 2 + 1 - n], i * 2 + 1 - n);
    }
    add[i] = Add();
  }
  inline void merge(int i) {
    if (i >= n) return;
    nodes[i] = sum(i * 2) + sum(i * 2 + 1);
  }
  inline Sum sum(int i) {
    propagate(i);
    return i < n ? nodes[i] : Sum(leafs[i - n], i - n);
  }
};
int main() {
  int n;
  int m;
  int q;
  while (~scanf("%d%d%d", &n, &m, &q)) {
    vector<vector<int>> g(n);
    for (int i = 0; i < n - 1; ++i) {
      int u, v;
      scanf("%d%d", &u, &v), --u, --v;
      g[u].push_back(v);
      g[v].push_back(u);
    }
    HeavyLightDecomposition hld;
    hld.build(g, 0);
    vector<pair<int, Sum>> girls(m);
    for (int(i) = 0; (i) < (int)(m); ++(i)) {
      int c;
      scanf("%d", &c), --c;
      girls[i] = {hld.lefts[c], Sum{i + 1, c + 1, i}};
    }
    sort(girls.begin(), girls.end());
    vector<int> indices(m);
    for (int(i) = 0; (i) < (int)(m); ++(i)) indices[girls[i].second.i] = i;
    vector<int> offsets(n + 1);
    for (int(i) = 0; (i) < (int)(n + 1); ++(i)) {
      offsets[i] = lower_bound(girls.begin(), girls.end(),
                               make_pair(i, Sum{-1, -1, -1})) -
                   girls.begin();
    }
    SegmentTree segt;
    vector<Sum> initValues(m);
    for (int(i) = 0; (i) < (int)(m); ++(i)) initValues[i] = girls[i].second;
    segt.init(initValues);
    vector<pair<int, pair<int, int>>> route;
    vector<int> ans;
    for (int ii = 0; ii < q; ++ii) {
      int ty;
      scanf("%d", &ty);
      if (ty == 1) {
        int u;
        int v;
        int k;
        scanf("%d%d%d", &u, &v, &k), --u, --v;
        ans.clear();
        get_route(hld, u, v, route);
        for (; k > 0; --k) {
          Sum sum;
          for (auto p : route) {
            int c = p.first, l = p.second.first, r = p.second.second;
            if (l > r) swap(l, r);
            int o = hld.offsets[c];
            int L = offsets[o + l], R = offsets[o + r];
            sum += segt.getRangeCommutative(L, R);
          }
          if (sum.weight == INFL) break;
          int i = sum.i;
          ans.push_back(i);
          segt.set(indices[i], Sum());
        }
        printf("%d", (int)ans.size());
        for (int(i) = 0; (i) < (int)(ans.size()); ++(i))
          printf(" %d", ans[i] + 1);
        puts("");
      } else if (ty == 2) {
        int u;
        int k;
        scanf("%d%d", &u, &k), --u, --k;
        int L = offsets[hld.lefts[u]], R = offsets[hld.rights[u]];
        segt.addToRange(L, R, Add(k));
      } else
        abort();
    }
  }
  return 0;
}