, Little Gyro will calculate and
, and count how many pairs of numbers satisfied
. After counting all the number pairs of the i-th turn, Little Gyro put the number
back to his right pocket with its initial position.
Now given an integer sequence, after these operations, Little Gyro wants to know the number of all the satisfied number pairs of each turn and ask you for help, please help him to count.
There are multiple test cases. The first line of the input contains an integer T, indicating the number of test cases. For each test case:
The first line contains an integer n (2 ≤ n ≤), indicating the length of the sequence.
The second line contains n integers(1 ≤
≤
), indicating the given sequence.
It's guaranteed that the sum of n of all test cases will not exceed.
For each test case, you should firstly print "Case X:" in the first line, indicating the case number.
And then output n lines, the i-th line contains an integer indicating the number of all the satisfied number pairs of numberin the i-th turn.