Phone List#2303

Phone List

1 second
512 megabytes
Very easy

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:

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.

Input

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.

Output

For each test case, print "YES" if the list of phone numbers is consistent, and "NO" otherwise.

Examples

Example 1

Loading
Loading