#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n, q, m;
  cin >> n >> q >> m;
  int a[n];
  for (int i = 0; i < (int)n; i++) cin >> a[i];
  int t[q], l[q], r[q];
  for (int i = 0; i < (int)q; i++) {
    cin >> t[i] >> l[i] >> r[i];
    l[i]--;
    r[i]--;
  }
  for (int i = 0; i < (int)m; i++) {
    int b;
    cin >> b;
    b--;
    for (int j = q - 1; j >= 0; j--) {
      if (l[j] <= b and b <= r[j]) {
        if (t[j] == 1) {
          b--;
          if (b == l[j] - 1) b = r[j];
        } else
          b = r[j] - b + l[j];
      }
    }
    cout << a[b] << " ";
  }
  cout << endl;
  return 0;
}
