POJ 3377: Best Cow Line