#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using pii = pair<int, int>;
using vi = vector<int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vlli = vector<long long int>;
using vpii = vector<pair<int, int>>;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, q, m;
  cin >> n >> q >> m;
  vi A(n + 1), B(q + 1), l(q + 1), r(q + 1);
  for (int i = 1; i <= n; i++) cin >> A[i];
  for (int i = 1; i <= q; i++) cin >> B[i] >> l[i] >> r[i];
  for (int i = 0; i < m; i++) {
    int x;
    cin >> x;
    int pos = x;
    for (int j = q; j >= 1; j--) {
      if (B[j] == 1) {
        if (l[j] == pos)
          pos = r[j];
        else if (pos > l[j] && pos <= r[j])
          pos--;
      } else {
        if (pos <= r[j] && pos >= l[j]) {
          pos = r[j] - pos + l[j];
        }
      }
    }
    cout << A[pos] << " ";
  }
  return 0;
}
