>>/3346/
 >>/3345/
Yeah, Tismbert does this.
Shouldn't be hard to program this, a model linear programming problem.