{"trustable":false,"sections":[{"title":"","value":{"format":"MD","content":"The International Space Station (ISS) is receiving some weird signals for the past few days. After converting them to our number system, the scientists aboard the ISS found out that some numbers are repeating. Due to travelling millions of miles, the signal gets distorted. Now they asked you to check the consistency of their data sets. **The consistency criterion is that, no number can be the prefix of another number in that data set.** Let\u0027s consider a data set:\n\n1) $123$\n2) $5123456$\n3) $123456$\n\nIn this data set, the numbers are 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 (\\leq 50)$, denoting the number of test cases.\n\nEach case starts with an integer $n (1 \\le n \\le 10000)$ denoting the total numbers in their list. Each of the next $n$ lines contains one **unique** 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":"MD","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"}}]}