#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 5;
int n, q, m;
int a[maxn];
int opt[maxn][3];
int b[105];
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> q >> m;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= q; i++) cin >> opt[i][0] >> opt[i][1] >> opt[i][2];
  for (int i = 1; i <= m; i++) cin >> b[i];
  for (int i = q; i >= 1; i--) {
    int op = opt[i][0], l = opt[i][1], r = opt[i][2];
    for (int j = 1; j <= m; j++) {
      if (b[j] < l || b[j] > r) continue;
      if (op == 1) {
        if (b[j] == l)
          b[j] = r;
        else
          b[j] -= 1;
      } else {
        b[j] = l + r - b[j];
      }
    }
  }
  for (int i = 1; i <= m; i++) {
    if (i > 1) cout << ' ';
    cout << a[b[i]];
  }
  cout << endl;
  return 0;
}
