usaco; solve "Milking Cows" from Chapter 1, Section 2