You receive a store credit of C at a local store and want to spend it on exactly two items. You first walk through the store and write down every item on sale, which gives you a list L. From that list you buy two items whose prices add up to the credit exactly.
The answer is the pair of integers giving the positions of those two items in the list, smaller number first. Positions are counted from 1.
The first line contains the number of test cases N. The N test cases follow, each on three lines.
Limits
For each test case, print one line containing Case #x: followed by the positions of the two items whose prices add up to the store credit, smaller position first, separated by a single space. Here x is the test case number starting from 1.