{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"SETI is receiving some weird signals for the past few days. After converting them to our number system they found out that some numbers are repeating. Due to travelling millions of miles signal gets distorted. Now they asked you check the consistency of their data sets. The consistency is that, no number is the prefix another number in that data set. Let\u0027s consider a data set:\n\n1. 123\n2. 5123456\n3. 123456\n\nIn this data set, numbers not consistent, because the first number is the prefix of the third one."}},{"title":"Input","value":{"format":"MD","content":"Input starts with an integer **T (\u0026le; 50)**, denoting the number of test cases.\n\nEach case starts with an integer **n (1 \u0026le; n \u0026le; 10000)** denoting the total numbers in their list. Each of the next **n** lines contains one unique phone number. A number is a sequence of digits and has length from **1** to **10**."}},{"title":"Output","value":{"format":"MD","content":"For each case, print the case number and `YES` if the list is consistent or `NO` if it\u0027s not."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\n3\n911\n97625999\n91125426\n5\n113\n12340\n123440\n12345\n98346\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eCase 1: NO\nCase 2: YES\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}