Split the Rectangle

ZOJ - 3664