#include <bits/stdc++.h>
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int n, q, m;
  std::cin >> n >> q >> m;
  std::vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    std::cin >> a[i];
  }
  struct Query {
    int ty, l, r;
  };
  std::vector<Query> queries(q);
  for (auto& query : queries) {
    std::cin >> query.ty >> query.l >> query.r;
    query.l--;
  }
  std::vector<int> b(m);
  for (int& x : b) {
    std::cin >> x;
    --x;
  }
  for (int x : b) {
    for (int qi = q - 1; qi >= 0; --qi) {
      auto t = queries[qi];
      if (t.l <= x && x < t.r) {
        if (t.ty == 1) {
          x = x == t.l ? t.r - 1 : x - 1;
        } else {
          x = t.r - 1 - x + t.l;
        }
      }
    }
    std::cout << a[x] << ' ';
  }
  std::cout << "\n";
  std::cout.flush();
  return 0;
}
