Bob likes to play seesaw. He thinks that it would be really funny if the seesaw is in a balanced state. It means that the seesaw is not tilted to the left and right. After playing the seesaw, Bob thinks about a problem related to the balanced seesaw.
Let A=\[a_1,a_2,…,a_m] denote an array of length m. Bob thinks that \[a_1,a_2,…,a_m] is a balanced seesaw array if there exists an integer k between 1 to m such that ∑_i=1m(i−k)a_i=0.
Bob gets an array A=\[a_1,a_2,…,a_n] as his birthday gift, and he is curious about whether some non-empty subarray is a balanced seesaw array. More formally, he is interested in whether \[a_ℓ,a_ℓ+1,…,a_r] is a balanced seesaw array for some specified pair (ℓ,r) where 1≤ℓ≤r≤n. Bob also finds that the elements in its array will change by time, it will have the following two types of changes.
For convenience, Bob will give you the array A=\[a_1,a_2,…,a_n] first. Then, there are q operations. Each operation will be one of the following three types.
Yes” or “No” for each operation type 3.The first line of input contains two integers n and q. n is the length of the array, and q is the number of operations. The second line contains n integers a_i to define the array. Each of the following q lines is an operation described in the problem statement.
Please output “Yes” or “No” to indicate whether \[a_ℓ,a_ℓ+1,…,a_r] is a balanced seesaw array for each type 3 operation.