#include <bits/stdc++.h>
using namespace std;
int a[200100];
int op[200100], l[200100], r[200100];
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  int n, q, m;
  cin >> n >> q >> m;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= q; i++) cin >> op[i] >> l[i] >> r[i];
  while (m--) {
    int id;
    cin >> id;
    for (int i = q; i >= 1; i--) {
      if (id > r[i] || id < l[i]) continue;
      if (op[i] == 1) {
        if (id == l[i])
          id = r[i];
        else
          id--;
      } else {
        id = r[i] + l[i] - id;
      }
    }
    cout << a[id] << " ";
  }
  cout << endl;
  return 0;
}
