Given a string $$$S$$$ of length $$$n$$$, consisting of the characters 'a' and 'b', and $$$q$$$ queries. There are two types of queries:
For each query of the second type, output the response to the query.
The first line contains a single number $$$n$$$ — the length of the string ($$$1 \le n \le 100\,000$$$).
The second line contains the string $$$S$$$ itself, consisting of the characters 'a' and 'b'.
The third line contains the number $$$q$$$ — the number of queries ($$$1 \le q \le 100\,000$$$).
Each of the following $$$q$$$ lines starts with an integer $$$type$$$ — the type of query ($$$1 \le type \le 2$$$).
In the first type of queries, an integer $$$i$$$ follows ($$$1 \le i \le n$$$).
In the second type of queries, a pair of integers $$$l$$$, $$$r$$$ follows ($$$1 \le l \le r \le n$$$).
For each second type of query, print 'YES' if the string can be split as described in the condition, and 'NO' otherwise.
7abbabba42 3 42 3 51 62 3 7
YES NO YES
In the first example, the substring from the first query can be represented as 'ba', the substring from the second query 'bab' cannot be split into valid substrings, after the third query the string looks like 'abbabaa', the substring from the fourth query can be split as follows: 'ba|ba|a'
| Name |
|---|


