POJ 1384: Piggy-Bank (Pass 2). Solved on 07/17/2014.