UVa 102 - Ecological Bin Packing

102 - Ecological Bin Packing

 * http://acm.uva.es/p/v1/102.html

Summary
The small constraints make Category:Bruteforce feasible, and it's trivial to take the best of the rest.

Explanation
Since there are only 3 types of bottles, we can enumerate the '''3! = 6''' places to put the bottles, and the rest is trivial.

Gotcha's

 * If there is more than one minimal solution, pick the one that comes lexicographically first.

Input
Input Here

Output
Output Here