Problems
The lines at the air pump at your gas station are getting too long! You want to optimize the process to help customers more quickly inflate their tires, sports balls, giant parade balloon animals, and other products.
The pump is automatic: you set the pressure to a specific number of pascals and plug the pump into
the inflatable product, and it will inflate as needed to that exact pressure. There are only two
buttons on the pump: up and down. They increase and decrease the target pressure, respectively,
by exactly

There is a line of
The pump is initially set to
Input
The first line of the input gives the number of test cases,
Output
For each test case, output one line containing Case #,
where
Example
2
3 3
30 10 40
20 50 60
60 60 50
5 2
1 1000000000
500000000 1000000000
1 1000000000
500000000 1
1 1000000000
Case #1: 110
Case #2: 4999999996