#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int n = 0, c = 0, m;
  while (!isdigit(c)) m = c - 45 ? 1 : -1, c = getchar();
  while (isdigit(c)) n = n * 10 + c - 48, c = getchar();
  return m * n;
}
const int N = 2e5 + 1;
int a[N];
int b[N];
int l[N], r[N], t[N];
int main() {
  int n = read(), q = read(), m = read();
  for (int i = 1; i <= n; i++) {
    a[i] = read();
  }
  for (int i = 1; i <= q; i++) {
    t[i] = read();
    l[i] = read();
    r[i] = read();
  }
  for (int i = 1; i <= m; i++) {
    int id = read();
    for (int j = q; j >= 1; j--) {
      if (id >= l[j] && id <= r[j]) {
        if (t[j] == 1) {
          id--;
          if (id < l[j]) {
            id = r[j];
          }
        } else {
          id = r[j] - id + l[j];
        }
      }
    }
    cout << a[id] << " ";
  }
}
