Problem: Nastya is a competitive programmer, but she is only studying now. Recently, Denis told her about the way to check if the string is correct bracket sequence. After that, unexpectedly, Nastya came up with a much more complex problem that Denis couldn't solve. Can you solve it? 

A string s is given. It consists of k kinds of pairs of brackets. Each bracket has the form t — it is an integer, such that 1 ≤ |t| ≤ k. If the bracket has a form t, then: 

  * If t > 0, then it's an opening bracket of the type t. 
  * If t < 0, then it's a closing bracket of the type -t. 



Thus, there are k types of pairs of brackets in total. 

The queries need to be answered: 

  1. Replace the bracket at position i with the bracket of the form t. 
  2. Check if the substring from the l-th to r-th position (including) is the correct bracket sequence. 

Recall the definition of the correct bracket sequence: 
  * An empty sequence is correct. 
  * If A and B are two correct bracket sequences, then their concatenation "A B" is also correct bracket sequence. 
  * If A is the correct bracket sequence, c (1 ≤ c ≤ k) is a type of brackets, then the sequence "c A -c" is also correct bracket sequence. 

Input

The first line contains an integer n (1 ≤ n ≤ 10^5) — length of string and k (1 ≤ k ≤ n) — the number of kinds of pairs of brackets.

The second line contains string s of length n — n integers s_1, s_2, …, s_n (1 ≤ |s_i| ≤ k)

The third line contains single integer q (1 ≤ q ≤ 10^5) — the number of queries.

Each of the following q lines describes the queries: 

  * 1 i t - query of the 1 type (1 ≤ i ≤ n, 1 ≤ |t| ≤ k). 
  * 2 l r - query of the 2 type (1 ≤ l ≤ r ≤ n). 

Output

For each query of 2 type, output "Yes" if the substring from the query is the correct bracket sequence and "No", otherwise.

All letters can be displayed in any case.

Examples

Input


2 1
1 -1
1
2 1 2


Output


Yes


Input


2 2
1 -2
1
2 1 2


Output


No


Input


6 2
1 2 -2 -1 1 -1
3
2 1 6
2 1 4
2 2 5


Output


Yes
Yes
No


Input


2 2
-1 1
4
2 1 2
1 1 1
1 2 -1
2 1 2


Output


No
Yes

Note

In the fourth test, initially, the string is not a correct bracket sequence, so the answer to the first query is "No". After two changes it will be equal to "1 -1", so it is a correct bracket sequence and the answer to the fourth query is "Yes".

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
const int MN = 100005, MS = 1 << 18 | 7;
namespace HASH {
const int mod = 1e9 + 7;
const int bs = 29;
const int iv = 758620695;
int _w[MN << 1], *w = _w + MN;
void init(int N) {
  w[0] = 1;
  for (int i = 1; i < N; ++i) {
    w[+i] = 1ll * w[i - 1] * bs % mod;
    w[-i] = 1ll * w[1 - i] * iv % mod;
  }
}
struct str {
  int x, m;
  str(int _v = 0, int _len = 0) : x(_v), m(_len) {}
  inline bool operator==(const str& rhs) const {
    return x == rhs.x && m == rhs.m;
  }
  inline str operator+(const str& rhs) const {
    return str((x + 1ll * rhs.x * w[m]) % mod, m + rhs.m);
  }
  inline str operator-(const str& rhs) const {
    return str(1ll * (x - rhs.x + mod) * w[-rhs.m] % mod, m - rhs.m);
  }
};
}  // namespace HASH
using HASH::str;
int N, Q;
struct dat {
  bool err;
  str vl, vr;
  dat() { err = 0; }
  dat(int x) {
    err = 0;
    x > 0 ? vr = str(x, 1) : vl = str(-x, 1);
  }
} tr[MS];
str gValL(int i, int k) {
  if (!k) return str();
  if (k == tr[i].vl.m) return tr[i].vl;
  if (k <= tr[(i << 1)].vl.m) return gValL((i << 1), k);
  return tr[(i << 1)].vl +
         (gValL(((i << 1) | 1), k - tr[(i << 1)].vl.m + tr[(i << 1)].vr.m) -
          tr[(i << 1)].vr);
}
str gValR(int i, int k) {
  if (!k) return str();
  if (k == tr[i].vr.m) return tr[i].vr;
  if (k <= tr[((i << 1) | 1)].vr.m) return gValR(((i << 1) | 1), k);
  return tr[((i << 1) | 1)].vr + (gValR((i << 1), k - tr[((i << 1) | 1)].vr.m +
                                                      tr[((i << 1) | 1)].vl.m) -
                                  tr[((i << 1) | 1)].vl);
}
void Upd(int i) {
  if (tr[(i << 1)].err || tr[((i << 1) | 1)].err) return tr[i].err = 1, void();
  tr[i].err = 0;
  tr[i].vl = tr[(i << 1)].vl;
  tr[i].vr = tr[((i << 1) | 1)].vr;
  if (tr[(i << 1)].vr.m <= tr[((i << 1) | 1)].vl.m) {
    if (tr[(i << 1)].vr == gValL(((i << 1) | 1), tr[(i << 1)].vr.m))
      tr[i].vl = tr[i].vl + (tr[((i << 1) | 1)].vl - tr[(i << 1)].vr);
    else
      tr[i].err = 1;
  } else {
    if (tr[((i << 1) | 1)].vl == gValR((i << 1), tr[((i << 1) | 1)].vl.m))
      tr[i].vr = tr[i].vr + (tr[(i << 1)].vr - tr[((i << 1) | 1)].vl);
    else
      tr[i].err = 1;
  }
}
void Build(int i, int l, int r) {
  if (l == r) {
    int x;
    scanf("%d", &x);
    tr[i] = x;
    return;
  }
  Build((i << 1), l, ((l + r) >> 1)),
      Build(((i << 1) | 1), ((l + r) >> 1) + 1, r);
  Upd(i);
}
void Mdf(int i, int l, int r, int p, int x) {
  if (l == r) return tr[i] = x, void();
  p <= ((l + r) >> 1) ? Mdf((i << 1), l, ((l + r) >> 1), p, x)
                      : Mdf(((i << 1) | 1), ((l + r) >> 1) + 1, r, p, x);
  Upd(i);
}
int stk[45], tp;
void Extract(int i, int l, int r, int a, int b) {
  if (r < a || b < l) return;
  if (a <= l && r <= b) return stk[++tp] = i, void();
  Extract((i << 1), l, ((l + r) >> 1), a, b),
      Extract(((i << 1) | 1), ((l + r) >> 1) + 1, r, a, b);
}
str seq[45];
str gVal(int i, int k) {
  if (!k) return str();
  if (k == seq[i].m) return seq[i];
  if (k <= tr[stk[i]].vr.m) return gValR(stk[i], k);
  return tr[stk[i]].vr +
         (gVal(i - 1, k - tr[stk[i]].vr.m + tr[stk[i]].vl.m) - tr[stk[i]].vl);
}
bool Qur(int l, int r) {
  tp = 0, Extract(1, 1, N, l, r);
  for (int i = 1; i <= tp; ++i) {
    if (tr[stk[i]].err) return 0;
    if (seq[i - 1].m < tr[stk[i]].vl.m) return 0;
    if (tr[stk[i]].vl == gVal(i - 1, tr[stk[i]].vl.m))
      seq[i] = tr[stk[i]].vr + (seq[i - 1] - tr[stk[i]].vl);
    else
      return 0;
  }
  return !seq[tp].m;
}
int main() {
  scanf("%d%*d", &N);
  HASH::init(N);
  Build(1, 1, N);
  scanf("%d", &Q);
  while (Q--) {
    int t, x, y;
    scanf("%d%d%d", &t, &x, &y);
    if (t == 1)
      Mdf(1, 1, N, x, y);
    else
      puts(Qur(x, y) ? "Yes" : "No");
  }
  return 0;
}