#include <bits/stdc++.h>
using namespace std;
int v[200000];
int p[100];
int qa[200000], qb[200000], qc[200000];
int main() {
  int n, q, m;
  cin >> n >> q >> m;
  for (int i = 0; i < n; i++) cin >> v[i];
  for (int i = 0; i < q; i++) cin >> qa[i] >> qb[i] >> qc[i];
  for (int i = 0; i < m; i++) cin >> p[i];
  for (int i = q - 1; i >= 0; i--) {
    if (qa[i] == 1) {
      for (int j = 0; j < m; j++) {
        if (qb[i] < p[j] && p[j] <= qc[i])
          p[j]--;
        else if (p[j] == qb[i])
          p[j] = qc[i];
      }
    } else {
      for (int j = 0; j < m; j++)
        if (qb[i] <= p[j] && p[j] <= qc[i]) p[j] = qb[i] + (qc[i] - p[j]);
    }
  }
  for (int i = 0; i < m; i++) cout << v[p[i] - 1] << " ";
  cout << endl;
  return 0;
}
