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 int N = 1000 * 100 + 10;
const int M = 19;
const long long INF = 1000LL * 1000LL * 1000LL * 1000LL * 300LL;
const int rozmiar = 1 << 18;
vector<long long> Girls[N];
vector<int> Graf[N];
vector<pair<int, int> > Sciezka[N];
int Parent[M][N];
pair<int, int> Order[N];
pair<int, int> Poz[N];
int Syn[N];
int Nr[N], Ost[N];
pair<int, int> Pre[N];
int Rozmiar[N];
vector<pair<pair<long long, long long>, int> > DP[N];
long long FT[2 * rozmiar];
vector<pair<long long, long long> > Prz[N];
int t;
void Przepchnij(int i, int v) {
  DP[i][2 * v].first.first += Prz[i][v].first;
  DP[i][2 * v].first.second += Prz[i][v].second;
  DP[i][2 * v + 1].first.first += Prz[i][v].first;
  DP[i][2 * v + 1].first.second += Prz[i][v].second;
  Prz[i][2 * v].first += Prz[i][v].first;
  Prz[i][2 * v].second += Prz[i][v].second;
  Prz[i][2 * v + 1].first += Prz[i][v].first;
  Prz[i][2 * v + 1].second += Prz[i][v].second;
  Prz[i][v] = make_pair(0, 0);
}
void Dodaj(int i, int v, int p_b, int k_b, int p, int k,
           pair<long long, long long> w) {
  if (p_b > k || k_b < p) return;
  if (p <= p_b && k_b <= k) {
    DP[i][v].first.first += w.first;
    DP[i][v].first.second += w.second;
    Prz[i][v].first += w.first;
    Prz[i][v].second += w.second;
    return;
  }
  Przepchnij(i, v);
  Dodaj(i, 2 * v, p_b, (p_b + k_b) / 2, p, k, w);
  Dodaj(i, 2 * v + 1, (p_b + k_b) / 2 + 1, k_b, p, k, w);
  DP[i][v] = min(DP[i][2 * v], DP[i][2 * v + 1]);
}
pair<pair<long long, long long>, int> WezMin(int i, int v, int p_b, int k_b,
                                             int p, int k) {
  if (p_b > k || k_b < p) return make_pair(make_pair(INF, INF), 0);
  if (p <= p_b && k_b <= k) {
    return DP[i][v];
  }
  Przepchnij(i, v);
  return min(WezMin(i, 2 * v, p_b, (p_b + k_b) / 2, p, k),
             WezMin(i, 2 * v + 1, (p_b + k_b) / 2 + 1, k_b, p, k));
  DP[i][v] = min(DP[i][2 * v], DP[i][2 * v + 1]);
}
void DodajFT(int p, int k, long long w) {
  FT[p] += w;
  if (p != k) FT[k] += w;
  while (p / 2 != k / 2) {
    if (p % 2 == 0) FT[p + 1] += w;
    if (k % 2 == 1) FT[k - 1] += w;
    p /= 2;
    k /= 2;
  }
}
long long SumaFT(int v) {
  long long res = FT[v];
  v /= 2;
  while (v > 0) {
    res += FT[v];
    v /= 2;
  }
  return res;
}
bool Przodek(int v, int u) {
  if (Order[v].first <= Order[u].first && Order[u].second <= Order[v].second)
    return true;
  return false;
}
int LCA(int v, int u) {
  int m;
  if (Przodek(v, u)) return v;
  if (Przodek(u, v)) return u;
  m = M - 1;
  while (m > 0) {
    while (m > 0 && Przodek(Parent[m][v], u)) m--;
    if (!Przodek(Parent[m][v], u)) v = Parent[m][v];
  }
  if (Przodek(v, u)) return v;
  return Parent[0][v];
}
void Wczytaj(int n, int m) {
  int i, a, v, u;
  for (i = 0; i < n - 1; i++) {
    scanf("%d%d", &v, &u);
    Graf[v].push_back(u);
    Graf[u].push_back(v);
  }
  for (i = 1; i <= m; i++) {
    scanf("%d", &a);
    Girls[a].push_back(i);
  }
}
void DFSLCA(int v, int ojciec) {
  int i;
  Parent[0][v] = ojciec;
  Order[v].first = t++;
  for (i = 0; i < Graf[v].size(); i++) {
    if (Graf[v][i] != ojciec) DFSLCA(Graf[v][i], v);
  }
  Order[v].second = t++;
}
void DFSHLD(int v, int ojciec) {
  int i;
  Syn[v] = 1;
  for (i = 0; i < Graf[v].size(); i++) {
    if (Graf[v][i] != ojciec) {
      DFSHLD(Graf[v][i], v);
      Syn[v] += Syn[Graf[v][i]];
    }
  }
  Nr[v] = v;
  for (i = 0; i < Graf[v].size(); i++) {
    if (Graf[v][i] != ojciec && 2 * Syn[Graf[v][i]] > Syn[v])
      Nr[v] = Nr[Graf[v][i]];
  }
  Poz[v] = make_pair(Sciezka[Nr[v]].size(),
                     Sciezka[Nr[v]].size() + Girls[v].size() - 1);
  Ost[Nr[v]] = v;
  for (i = 0; i < Girls[v].size(); i++) {
    Sciezka[Nr[v]].push_back(make_pair(Girls[v][i], v));
  }
}
void MakeTrees(int n) {
  int i, j;
  for (i = 1; i <= n; i++) {
    Rozmiar[i] = 1;
    while (Rozmiar[i] <= Sciezka[i].size()) Rozmiar[i] *= 2;
    for (j = 0; j < 2 * Rozmiar[i]; j++) {
      DP[i].push_back(make_pair(make_pair(0, 0), j - Rozmiar[i]));
      Prz[i].push_back(make_pair(0, 0));
    }
    for (j = 0; j < Sciezka[i].size(); j++)
      Dodaj(i, 1, 0, Rozmiar[i] - 1, j, j, Sciezka[i][j]);
    for (; j < Rozmiar[i]; j++)
      Dodaj(i, 1, 0, Rozmiar[i] - 1, j, j, make_pair(INF, INF));
  }
}
void DFSList(int v, int parent) {
  int i;
  Pre[v].second = Pre[v].first = t++;
  for (i = 0; i < Graf[v].size(); i++) {
    if (Graf[v][i] != parent) {
      DFSList(Graf[v][i], v);
      Pre[v].second = max(Pre[v].second, Pre[Graf[v][i]].second);
    }
  }
}
void Inicjuj(int n) {
  int i, j;
  DFSLCA(1, 1);
  for (j = 1; j < M; j++) {
    for (i = 1; i <= n; i++) Parent[j][i] = Parent[j - 1][Parent[j - 1][i]];
  }
  DFSHLD(1, 1);
  MakeTrees(n);
  t = 0;
  DFSList(1, 1);
}
pair<pair<long long, long long>, pair<int, int> > BestGirl(int v, int u) {
  pair<pair<long long, long long>, pair<int, int> > res, a_best_g;
  pair<pair<long long, long long>, int> best_g;
  int x;
  res = make_pair(make_pair(INF, INF), make_pair(0, 0));
  while (!Przodek(Ost[Nr[v]], u)) {
    x = Ost[Nr[v]];
    if (Poz[v].first <= Poz[x].second) {
      best_g =
          WezMin(Nr[v], 1, 0, Rozmiar[Nr[v]] - 1, Poz[v].first, Poz[x].second);
      a_best_g = make_pair(best_g.first, make_pair(Nr[v], best_g.second));
      a_best_g.first.first += SumaFT(rozmiar + Pre[x].first);
      res = min(a_best_g, res);
    }
    v = Parent[0][x];
  }
  if (Poz[v].first <= Poz[u].second) {
    best_g =
        WezMin(Nr[v], 1, 0, Rozmiar[Nr[v]] - 1, Poz[v].first, Poz[u].second);
    a_best_g = make_pair(best_g.first, make_pair(Nr[v], best_g.second));
    a_best_g.first.first += SumaFT(rozmiar + Pre[Ost[Nr[v]]].first);
    return min(a_best_g, res);
  }
  return res;
}
int main() {
  pair<pair<long long, long long>, pair<int, int> > o;
  vector<int> Res;
  int n, m, q;
  int i, j;
  int w, t, v, u, k, lca;
  scanf("%d%d%d", &n, &m, &q);
  Wczytaj(n, m);
  Inicjuj(n);
  for (i = 0; i < q; i++) {
    scanf("%d", &t);
    if (t == 1) {
      Res.clear();
      scanf("%d%d%d", &v, &u, &k);
      lca = LCA(v, u);
      for (j = 0; j < k; j++) {
        o = min(BestGirl(v, lca), BestGirl(u, lca));
        if (o.first.first >= INF) break;
        Res.push_back(Sciezka[o.second.first][o.second.second].first);
        Dodaj(o.second.first, 1, 0, Rozmiar[o.second.first] - 1,
              o.second.second, o.second.second, make_pair(INF, INF));
      }
      printf("%d ", (int)Res.size());
      for (j = 0; j < Res.size(); j++) printf("%d ", Res[j]);
      printf("\n");
    }
    if (t == 2) {
      scanf("%d%d", &v, &w);
      if (Poz[v].second >= 0 && Ost[Nr[v]] != v)
        Dodaj(Nr[v], 1, 0, Rozmiar[Nr[v]] - 1, 0, Poz[v].second,
              make_pair((long long)w, 0));
      DodajFT(rozmiar + Pre[v].first, rozmiar + Pre[v].second, (long long)w);
    }
  }
  return 0;
}