Given two strings
Set the
th character of to and then output .Consider the 1-indexed substring of
starting at index ending at index , call it .Consider the suffixes of
starting with the th and th indexed characters, call them and .Consider the 1-indexed substrings of
starting and ending at and , and and . Determine if their concatenation is a substring ofyes
if so, printno
otherwise.
Constraints
Each character in the string will be a positive integer no larger than
Input
The first line contains a single integer, the test case number. You may ignore this line.
The next line contains a single positive integer,
The next line contains
The next line contains a single positive integer,
The next line contains
The next line contains a single positive integer,
The next
If the operation is the first one, there will be three space-separated integers,
If the operation is the second one, there will be three space-separated integers,
If the operation is the third one, there will be three space-separated integers,
If the operation is the fourth one, there will be five space-separated integers,
Output
Print an answer for each operation. All answers go on their own lines.
Sample Input
0
10
1 2 3 3 3 1 2 3 2 1
3
1 3 1
10
3 1 3
4 3 3 2 2
2 2 10
1 3 2
2 7 9
2 7 10
2 3 9
2 2 8
1 7 1
1 4 2
Sample Output
1
yes
1 2
1 3
0 3
1 1
1 1
1 1
2 1
2 1
Comments