As you all know, Pritam loves to go on trips. Hence buses are like lifeline for Pritam. But nothing ever ideal happens with Pritam as he wishes for.
Bus conductor of the buses which Pritam aboards are usually bad at Math. So this always costs Pritam some extra money. Back at home, Pritam was reviewing some old tickets and the amount he paid for them.
But as usual Pritam is busy planning for his future trips. So he needs your help again.
So given a ticket code and the expression for total amount of ticket your task is to count the total number of ticket for which Pritam paid extra money and print those ticket codes in which they appear in the input sequence.
The first line of input contain an integer T denoting the number of test cases.
First line of each test case contains N.
Next N lines contain space separated input of ticket code and expression for bus fare calculation.
Each line contains CODE seperated by space with expression of PxCOST=SUM Here P, COST and SUM are integers
For each test case output the number of invalid tickets and the ticket codes which are invalid.
1 <= T <= 100
1 <= N <= 103
1 <= |CODE| <= 102
1 <= P, COST, SUM <= 109
Code for 3rd, 4th and 5th ticket in the input sequence is incorrect. Hence count of invalid tickets is 3.