using System.Collections.Generic;
public static void Main()
Program p = new Program();
numTestCases = int.Parse(Console.ReadLine());
for (int i = 0; i < numTestCases; i++)
var phoneNumbersList = new SortedSet<string>();
numPhoneNumbers = int.Parse(Console.ReadLine());
HashSet<string> hashset = new HashSet<string>();
for (int j = 0; j < numPhoneNumbers; j++)
numberString = Console.ReadLine();
if(hashset.Contains(numberString))
while(numberString.Length > 0 )
hashset.Add(numberString);
numberString = numberString.Remove(numberString.Length - 1);
Console.WriteLine(pass ? "YES" : "NO");
static bool isConsistent(string a,string b)
for (int i = 0; i < len; i++)