Given a list of phone numbers, determine whether it is consistent, that is, whether no number in the list is a prefix of another.
For example, consider a phone directory with the following entries:
Emergency service:
Alice:
Bob:
In this case, it is impossible to call Bob: as soon as you dial the first three digits of his number, you are connected to the emergency service. Therefore, this list is inconsistent.
The first line contains an integer t~(1 \le t \le 40) — the number of test cases.
Each test case begins with a line containing an integer n~(1 \le n \le 10^6) — the number of phone numbers.
Each of the following lines contains one phone number consisting of at most digits.
For each test case, print "YES" if the list of phone numbers is consistent, and "NO" otherwise.
Example 1