#include <bits/stdc++.h>
using namespace std;
bool is(long long a, long long l, long long r) { return (a >= l && a <= r); }
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, q, m;
  cin >> n >> q >> m;
  long long a[n], t[q], l[q], r[q], b[m], ans[m];
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < q; i++) {
    cin >> t[i] >> l[i] >> r[i];
    l[i]--;
    r[i]--;
  }
  for (long long i = 0; i < m; i++) {
    cin >> b[i];
    b[i]--;
  }
  for (long long i = q - 1; i >= 0; i--) {
    if (t[i] == 1) {
      for (long long j = 0; j < m; j++) {
        if (is(b[j], l[i], r[i])) {
          if (b[j] == l[i])
            b[j] = r[i];
          else
            b[j]--;
        }
      }
    } else {
      for (long long j = 0; j < m; j++) {
        if (is(b[j], l[i], r[i])) {
          b[j] = r[i] - (b[j] - l[i]);
        }
      }
    }
  }
  for (long long i = 0; i < m; i++) {
    cout << a[b[i]] << ' ';
  }
  return 0;
}
