#include <bits/stdc++.h>
using namespace std;
template <typename T>
T gcd(T x, T y) {
  if (x < y) swap(x, y);
  while (y > 0) {
    T f = x % y;
    x = y;
    y = f;
  }
  return x;
}
template <typename T>
pair<T, T> exgcd(T x, T y) {
  if (x < y) swap(x, y);
  pair<T, T> r = make_pair(1, 0);
  while (y > 0) {
    T f = x % y;
    r = make_pair(r.second, r.first - (x / y) * r.second);
    x = y;
    y = f;
  }
  return r;
}
int n, q, m;
struct QR {
  int t, l, r;
};
QR qr[(int)2e5 + 7];
int a[(int)2e5 + 7];
int main(int argc, char *argv[]) {
  std::cin.sync_with_stdio(false);
  std::cin.tie(nullptr);
  cin >> n >> q >> m;
  {
    for (int i = 1; i <= n; i++) cin >> a[i];
    for (int i = 1; i <= q; i++) {
      cin >> qr[i].t >> qr[i].l >> qr[i].r;
    }
    for (int j = 1; j <= m; j++) {
      int x;
      cin >> x;
      for (int i = q; i >= 1; i--) {
        if (x >= qr[i].l && x <= qr[i].r) {
          if (qr[i].t == 1) {
            x--;
            if (x < qr[i].l) x = qr[i].r;
          } else {
            x = qr[i].l + qr[i].r - x;
          }
        }
      }
      cout << (j > 1 ? " " : "") << a[x];
    }
  }
  return 0;
}
