Problems
The kid who learned to count
The kid who learned to count
\includegraphics{https://static.e-olymp.com/content/da/da219fc49251d3da66c5a855643cf4eb78927994.jpg}
Kid controller operates a boat-ferry. His task is to make sure that the ferry did not sink from excess capacity. Today only two tickets left to the ship, besides the boat can withstand only $k$ kilo additionally. The forest has only one long road along which the animals live. Help the kid to find out whether he can find two passengers in a particular area of the forest.
\InputFile
The first line contains two numbers $n~(2 \le n \le 10^6)$ and $k~(1 \le k \le 10^9)$ --- the number of animals in the forest and the remaining capacity of the ferry, respectively. The second line contains $n$ numbers --- the mass of each of the animals. Then given the number of queries $m$. Each of the next $m~(1 \le m \le 10^5)$ lines contains three integers --- the query type, $l$ and $r$ (if query type is $1$, then $1 \le l < r \le n$, otherwise $1 \le l \le n, 1 \le r \le 10^9)$.
\OutputFile
For each query of type $1$ print the line "\textbf{Yes}", if the Kid can find two passengers on a segment $[l; r]$ and "\textbf{No}" otherwise. Each query of type $2$ means that the animal with number $l$ change his weight and now weighs $r$ kilogram.
Input example #1
6 9 1 3 1 6 6 7 8 1 1 6 1 1 2 2 4 7 1 4 5 1 5 6 2 1 7 2 3 8 1 1 6
Output example #1
Yes Yes No No Yes