Qualification Round (Small)

No attempts yetTime limit5sMemory limit512 MB

Problem

You just advanced from the qualification round of a programming contest, and you want to know how many other contestants advanced with you. The only information you have is how many people solved each problem.

The qualification round had PP problems, and problem ii was fully solved by SiS_i contestants. A contestant had to solve at least CC problems to advance. Using only that information, find the largest number of contestants who could have advanced.

No contestant solves the same problem twice, so solving CC problems means solving CC different problems.

Input

The first line contains the number of test cases TT. Each of the next TT lines holds one test case as space-separated integers: first PP and CC, then the PP integers S0,S1,,SP1S_0, S_1, \dots, S_{P-1}.

Limits

  • 1T1001 \le T \le 100
  • 1P61 \le P \le 6
  • 1CP1 \le C \le P
  • 0Si10000 \le S_i \le 1000

Output

For each test case, print one line in the form Case #x: y, where xx is the test case number starting from 1 and yy is the largest number of contestants who could have solved at least CC problems.