#include <bits/stdc++.h>
using namespace std;
int a[200100], t[200100], l[200100], r[200100];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, q, m, i, j;
  cin >> n >> q >> m;
  for (i = 1; i <= n; i++) {
    int a1;
    cin >> a1;
    a[i] = a1;
  }
  for (i = 1; i <= q; i++) {
    int t1, l1, r1;
    cin >> t1 >> l1 >> r1;
    t[i] = t1;
    l[i] = l1;
    r[i] = r1;
  }
  while (m--) {
    int temp;
    cin >> temp;
    for (i = q; i > 0; i--) {
      if (temp >= l[i] && temp <= r[i]) {
        if (t[i] == 2)
          temp = l[i] + r[i] - temp;
        else {
          if (temp > l[i])
            temp--;
          else
            temp = r[i];
        }
      }
    }
    cout << a[temp] << " ";
  }
  return 0;
}
