You are given an array A of N strings and Q operations where each operation is one of the following two types:
Input format
Output format
For each operation of the second type, print the answer in a separate line.
Constraints
1 ≤ N ≤ 105
1 ≤ Q ≤ 105
1 ≤ L ≤ R ≤ N
1≤|Ai|,|T|,|S|≤105, where 1 ≤ i ≤ N