Pair Sum

No attempts yetTime limit1sMemory limit128 MB

Problem

You are given an integer array of size NN and an integer MM. The array has N×(N1)/2N \times (N - 1) / 2 distinct pairs. Count how many of those pairs have a sum exactly equal to MM.

For example, if the array is {1,2,3,4}\{1, 2, 3, 4\} and M=5M = 5, then two pairs sum to MM: {1,4}\{1, 4\} and {2,3}\{2, 3\}.

Input

The first line contains the number of test cases TT. TT is a positive integer at most 100000100\,000.

Each test case consists of two lines. The first line contains two integers NN and MM separated by a single space. NN is between 22 and 2000020\,000 inclusive. The second line contains the NN values of the array separated by single spaces. Every value is between 11 and 10000000001\,000\,000\,000 inclusive, the values are distinct, and they are sorted in increasing order.

Output

For each test case, print one line in the format Case #x: R, where xx is the case number starting from 1 and RR is the number of pairs whose sum is exactly MM.