#include <bits/stdc++.h>
using namespace std;
long long int power(long long int a, long long int b, long long int n) {
  long long int ans = 1;
  while (b > 0) {
    if (b % 2 == 1) ans = (ans * a) % n;
    a = (a * a) % n;
    b /= 2;
  }
  return ans;
}
long long int a[200005], qr[200005][3];
long long int ref(long long int x, long long int n) { return 1 + n - x; }
signed main() {
  long long int b, n, q, m;
  scanf("%lld", &(n));
  scanf("%lld", &(q));
  scanf("%lld", &(m));
  for (long long int i = 1; i <= n; i++) scanf("%lld", &(a[i]));
  for (long long int i = 0; i < q; i++) {
    scanf("%lld", &(qr[i][0]));
    scanf("%lld", &(qr[i][1]));
    scanf("%lld", &(qr[i][2]));
  }
  while (m--) {
    scanf("%lld", &(b));
    for (long long int i = q - 1; i >= 0; i--) {
      long long int l = qr[i][1], r = qr[i][2];
      if (qr[i][0] == 1) {
        if (b < l || b > r) continue;
        if (b == l)
          b = r;
        else
          b = b - 1;
      } else {
        if (b < l || b > r) continue;
        b = l + r - b;
      }
    }
    cout << a[b] << " ";
  }
  return 0;
}
