You have string $$$p$$$ of length $$$n$$$, each of its characters is from 'a' to 'z', i.e. a lowercase Latin letter.
In one action you can:
Determine for each query of the third type whether the corresponding strings are equal or not.
The first line of input contains a string $$$p$$$ of length $$$n$$$, consisting of lowercase Latin letters — the initial characters ($$$1 \leq n \leq 2 \cdot 10^5$$$).
The next line contains a single integer $$$q$$$ — the number of actions that will be performed ($$$1 \leq q \leq 2 \cdot 10^5$$$).
In the following $$$q$$$ lines, the descriptions of the queries are listed in the form:
For each query of the third type, output on a separate line a string "YES" (without quotes) if corresponding substrings are equal, and "NO" otherwise.
aaabc 6 3 1 2 2 3 1 4 c 2 c a 3 1 4 2 5 1 3 x 3 1 4 2 5
YES YES NO
abracadabra 7 3 1 4 8 11 1 7 r 2 a c 2 b c 3 1 4 8 11 3 1 4 5 8 3 2 4 6 8
YES YES YES YES