Find the Output

Explaination

Two Strings

Given two strings, determine if they share a common substring. A substring may be as small as one character.

Input Format
The first line contains a single integer p, the number of test cases.
The following p pairs of lines are as follows:
The first line contains string s1.
The second line contains string s2.

Output Format
For each pair of strings, return YES or NO

Sample Input
Sample Output

Explaination