Conveyer
One day, Kich and Poch went to work at a factory. The first time they were in the factory, they were very surprised. First, it was very dusty, so their superpowers had little effect on the people around them. Secondly, they were bored to death, so they decided to play a game. For this, they chose a conveyor belt (which, for a completely unknown reason, was not working). On it lies parts of heights .
Kich sets tasks for Poch, and he must fulfill them:
Task «reverse »: Poch must work hard to reverse the segment of parts from to .
Task «change »: Poch must change the height of the -th pattern from to (i.e., make ).
Query «ask »: Poch should think hard and say whether the heights of the parts on the segment to are sorted strictly in ascending order.
However, Poch recently tried to do lab work on "OAIP" discipline (he ended up in the factory, of course) and he is incredibly lazy to follow Kich's commands, so he asked you to help him outsmart Kich so that he doesn't have to do anything by hand himself.
Input
In the first line you are given a positive integer .
In the second line you are given integers .
In the third line you are given one number — the number of queries.
The next lines contain the queries themselves in the format described above.
Output
For each "ask" query, print the answer to it — "Yes" (without quotes) if the pattern heights are sorted in ascending order. Otherwise, output "No" (without quotes).