Here at Google we love teaching new skills to each other! There are employees at Google, numbered from to . There are a total of different skills, numbered from to . Each employee knows up to 5 different skills.
The i-th employee can mentor the j-th employee if there is a skill that the i-th employee knows that the j-th employee does not know. How many ordered pairs are there where the i-th employee can mentor the j-th employee?
输入格式
The first line of the input gives the number of test cases, . test cases follow. The first line of each test case gives the two integers and , which are the number of employees and the number of skills respectively.
The next lines describe the skills that each employee knows. The i-th of these lines begins with an integer which is the number of skills the i-th employee knows. Then, integers follow on the same line. The j-th of these integers is indicating that the i-th employee knows the skill .
输出格式
For each test case, output one line containing Case #x: y, where x is the test case number (starting from 1) and y is the number of ordered pairs where the i-th employee can mentor the j-th employee.