#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, q, m;
  scanf("%d%d%d", &n, &q, &m);
  int arr[n];
  for (int i = 0; i < n; i++) {
    scanf("%d", &arr[i]);
  }
  vector<tuple<int, int, int>> queries;
  for (int i = 0; i < q; i++) {
    int a, b, c;
    scanf("%d%d%d", &a, &b, &c);
    queries.push_back(make_tuple(a, b, c));
  }
  reverse(queries.begin(), queries.end());
  int x;
  for (int i = 0; i < m; i++) {
    scanf("%d", &x);
    for (auto e : queries) {
      int t, l, r;
      tie(t, l, r) = e;
      if (t == 1) {
        if (x < l or x > r) continue;
        if (x == l)
          x = r;
        else
          x--;
      } else {
        if (x < l or x > r) continue;
        x = r - (x - l);
      }
    }
    printf("%d ", arr[x - 1]);
  }
  puts("");
  return 0;
}
