SCU 2005' Warmup Contest 26

D: Open and Close