#include <bits/stdc++.h>
using namespace std;
int a[200005], sp[105];
int main() {
  int n, q, m;
  scanf("%d %d %d", &n, &q, &m);
  for (int i = 1; i <= n; i++) {
    scanf("%d", a + i);
  }
  vector<pair<int, pair<int, int> > > v;
  while (q--) {
    int x, y, z;
    scanf("%d %d %d", &x, &y, &z);
    v.push_back(make_pair(x, make_pair(y, z)));
  }
  for (int i = 1; i <= m; i++) {
    scanf("%d", sp + i);
    int indx = sp[i];
    for (int j = v.size() - 1; j >= 0; j--) {
      int type = v[j].first;
      int l = v[j].second.first;
      int r = v[j].second.second;
      if (indx < l || indx > r) continue;
      if (type == 2) {
        indx = (r) - (indx - l);
      } else if (type == 1) {
        if (indx == l) {
          indx = r;
        } else
          indx--;
      }
    }
    printf("%d ", a[indx]);
  }
}
