SCU 2007 warmup contest 15

N: Steady Cow Assignment