Emma and Eric are moving into the new house they bought after returning from their honeymoon. Luckily, a few friends are helping with the move. To carry the furniture they only have two small cars, which makes things a little complicated. The furniture does not fit inside the cars, so Eric wants to put it on the roofs instead. However, each car's roof can bear only a limited weight, so several trips will be needed to move everything.
The move works like this:
The whole group always travels together so the move stays fun and nobody is left alone. Because the two houses are far apart, Eric wants to make as few trips as possible.
Given the weight wi of each piece of furniture and the roof capacities C1 and C2 of the two cars, how many trips to the new house are required to move all the furniture? A car with capacity C may carry furniture whose total weight is at most C on any single trip.
The first line contains the number of scenarios. Each scenario is given on two lines. The first line contains three integers n, C1, and C2: the number of pieces of furniture n (1≤n≤10) and the roof capacities C1 and C2 (1≤Ci≤100). The second line contains n integers w1,…,wn, the weights of the furniture (1≤wi≤100). Every piece of furniture can be carried by at least one of the two cars.
For each scenario, first print a line Scenario #i:, where i is the scenario number starting from 1. On the next line, print the minimum number of trips to the new house needed to move all the furniture. Separate consecutive scenarios with a blank line.