SCU 2007 warmup contest 5

E: Elevator Stopping Plan