#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q, m;
  int v[200005];
  cin >> n >> q >> m;
  for (int i = 1; i <= n; i++) {
    cin >> v[i];
  }
  int Q[200005], l[200005], r[200005];
  for (int i = 0; i < q; i++) {
    cin >> Q[i] >> l[i] >> r[i];
  }
  for (int i = 0; i < m; i++) {
    int p;
    cin >> p;
    for (int j = q - 1; j >= 0; j--) {
      if (Q[j] == 1) {
        if (p < l[j] or p > r[j]) continue;
        if (p == l[j])
          p = r[j];
        else
          p--;
      } else {
        if (p >= l[j] and p <= r[j]) p = r[j] - (p - l[j]);
      }
    }
    cout << v[p] << " ";
  }
  cout << endl;
  return 0;
}
