#include <bits/stdc++.h>
using namespace std;
vector<int> a;
vector<pair<int, pair<int, int> > > qr;
int main() {
  if (fopen("input.txt", "r")) freopen("input.txt", "r", stdin);
  int n, q, m;
  scanf("%d %d %d ", &n, &q, &m);
  a.assign(n + 1, 0);
  for (int i = 0; i < n; i++) scanf("%d ", &a[i + 1]);
  qr.assign(q, pair<int, pair<int, int> >(0, pair<int, int>(0, 0)));
  for (int i = 0; i < q; i++)
    scanf("%d %d %d ", &qr[i].first, &qr[i].second.first, &qr[i].second.second);
  ;
  reverse(qr.begin(), qr.end());
  while (m--) {
    int b;
    scanf("%d ", &b);
    for (int i = 0; i < q; i++) {
      if (qr[i].second.first > b || qr[i].second.second < b) continue;
      if (qr[i].first == 1) {
        if (b == qr[i].second.first)
          b = qr[i].second.second;
        else
          b--;
      }
      if (qr[i].first == 2) b = qr[i].second.first + qr[i].second.second - b;
    }
    printf("%d ", a[b]);
  }
  return 0;
}
