In First line - number of testcases, In each case there are 2 with strings, first one is text, the second line contains pattern.
Input Format
print YES if pattern is a substring of text if not NO.
2
abcd
cd
algorithm
advan
Constraints
1 ≤ T ≤ 1000
Output Format
YES
NO
1 case - YES because "cd" is present at the end of "abcd"; 2 case - NO "advan" is not pattern of "algorithm".