Bobo is working with an integer sequence $$$a_1,a_2,\ldots,a_n$$$ of length $$$n$$$. He must process $$$q$$$ queries in order. Each query is of one of the following two types:
Your task is to help Bobo process these queries efficiently.
The first line of input contains two integers $$$n$$$, $$$q$$$ ($$$1 \le n,q \le 2 \cdot 10^5$$$).
The second line of input contains $$$n$$$ integers $$$a_1, a_2, \ldots, a_n$$$ ($$$0 \le a_i \le 2 \cdot 10^5$$$).
Then $$$q$$$ lines follow. Each of the following lines contains a query, described in the statement.
For each query of the second type, output "YES" (without quotes) in one line if elements $$$a_L, a_{L+1}, \ldots, a_R$$$ can be divided into $$$(R-L+1)/2$$$ pairs of integers with the same sum; otherwise, output "NO" (without quotes) in one line.
You can output "YES" and "NO" in any case (for example, strings "yES", "yes", and "Yes" will all be recognized as a positive response).
8 41 2 3 4 5 6 7 82 1 81 1 4 42 1 62 1 8
YES NO YES
| Название |
|---|


