You are given a simple polygon with vertices in boundary order. The polygon includes its interior and boundary.
Let be the line through and . The entire polygon lies on one side of . Let be the closed half-plane on that side. The wall occupies .
Initially, fits exactly into the opening in the wall. Determine whether can be moved by a continuous sequence of translations, without rotation, until every point of is outside .
Throughout the motion, the area of the intersection between the moving polygon and the wall must be . Touching boundaries and sliding along them are allowed. The direction of translation may change during the motion. The wall and remain fixed.
The input is given in the following format:
Print YES if the polygon can be removed completely, and NO otherwise.
The coordinates of are (). The last vertex is also connected to the first vertex by an edge.