SCU 2007 warmup contest 28

B: Rectilinear polygon