Rumor has it that dadas08 can say only the given words. The same word may appear more than once.
Given a word of length , determine whether dadas08 can say it. The word must be exactly equal to one of the given words. Using only part of a word or concatenating several words is not allowed.
The input is given in the following format.
For each test case, print YES on one line if is exactly equal to at least one of . Otherwise, print .
The word , zzzz, is exactly equal to the fourth word, so the answer is YES.
None of the three given words is equal to z, so the answer is NO.
Although ab is a prefix of abc, it is not equal to the whole word. It is not equal to either of the other words, so the answer is NO.
The first line contains the number of test cases . Each test case is given in the following format.
The first line of each test case contains the number of given words and the length of the word to check.
The -th of the next lines contains the length and a word that dadas08 can say, separated by a space. The last line contains the word of length .
NO| 2 | 78 | No additional constraints. |