SCU 2007 warmup contest 15

D: Mountains (II)