#include <bits/stdc++.h>
using namespace std;
int n, q, m, ar[200001] = {};
pair<pair<int, int>, int> qry[200001] = {};
int md(int a, int b) {
  a %= b;
  if (a < 0) {
    return a + b;
  } else {
    return a;
  }
}
int main() {
  ios ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> q >> m;
  for (int i = 0; i < n; i++) {
    cin >> ar[i];
  }
  for (int i = 0; i < q; i++) {
    cin >> qry[i].second >> qry[i].first.first >> qry[i].first.second;
  }
  for (int i = 0; i < m; i++) {
    int x;
    cin >> x;
    for (int j = q - 1; j >= 0; j--) {
      if (qry[j].first.first <= x && x <= qry[j].first.second) {
        if (qry[j].second == 2) {
          x = qry[j].first.first +
              md(qry[j].first.first - x - 1,
                 qry[j].first.second - qry[j].first.first + 1);
        } else {
          x = qry[j].first.first +
              md(x - qry[j].first.first - 1,
                 qry[j].first.second - qry[j].first.first + 1);
        }
      }
    }
    cout << ar[x - 1];
    if (i < m - 1) {
      cout << " ";
    }
  }
  cout << "\n";
}
