You are given an empty array of strings, let's call it $$$A$$$. You need to process $$$n$$$ queries of three different types.
The queries are as follows:
Your task is to handle these queries and provide the correct output for all type 3 queries.
The first line of input contains a single integer $$$n$$$ ($$$1 \le n \le 10^5$$$), the number of queries.
The following $$$n$$$ lines each describe a query. The format for each query is one of the following:
It is guaranteed that the sum of lengths of all strings $$$S$$$ in type 1 queries and all strings $$$x$$$ in type 3 queries does not exceed $$$10^6$$$.
Note: it is guaranteed that the first query is from type one.
For each query of type 3, print "Yes" on a new line if the string $$$x$$$ is found in the array $$$A$$$. Otherwise, print "No".
51 abc3 abc2 c3 abc3 abcc
Yes No Yes
Let $$$A$$$ be the array of strings. We will trace its state through each query to understand the output.
| Name |
|---|


