#include <bits/stdc++.h>
using namespace std;
int a[200005], typ[200005], l[200005], r[200005], n, m, q;
inline int read() {
  int x = 0;
  char c = getchar();
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar();
  return x;
}
int main() {
  int i, j, pos;
  n = read();
  q = read();
  m = read();
  for (i = 1; i <= n; i++) {
    a[i] = read();
  }
  for (i = 1; i <= q; i++) {
    typ[i] = read();
    l[i] = read();
    r[i] = read();
  }
  while (m--) {
    pos = read();
    for (i = q; i >= 1; i--) {
      if (pos < l[i] || pos > r[i]) {
        continue;
      }
      if (typ[i] == 1) {
        if (pos == l[i]) {
          pos = r[i];
        } else {
          pos--;
        }
      }
      if (typ[i] == 2) {
        pos = l[i] + r[i] - pos;
      }
    }
    printf("%d ", a[pos]);
  }
  return 0;
}
