#include <bits/stdc++.h>
using namespace std;
const int N = 3 * 2 * 1e5 + 3;
int l[N], r[N], t[N], a[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, q, m;
  cin >> n >> q >> m;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < q; i++) {
    cin >> t[i] >> l[i] >> r[i];
    l[i]--;
    r[i]--;
  }
  for (int i = 0; i < m; i++) {
    int p;
    cin >> p;
    p--;
    for (int j = q - 1; j >= 0; j--) {
      if (!(l[j] <= p && p <= r[j])) continue;
      if (t[j] == 1 && p == l[j])
        p = r[j];
      else if (t[j] == 1)
        p = p - 1;
      if (t[j] == 2) p = l[j] + (r[j] - p);
    }
    cout << a[p] << " ";
  }
  return 0;
}
