Rectangles are everywhere
Andriyko drank a lot of compote and now he's very afraid of rectangles. Andriyko's room can be mathematically represented as a rectangle with height and width . In this room, there are rectangles, each of which is completely inside the room and does not touch the points and (where is the top-left and is the bottom-right point).
Andriyko wants to go from the corner to without ever touching any of the rectangles (not even touching them). If he is at coordinate , then he can move to any of the following coordinates with one step: , , , , but only if the next coordinate does not go beyond the boundaries of the rectangle.
Determine if he can reach from one corner to the other.
Input
The first line contains three integers , , .
Each of the next lines contains four integers , , , — the coordinates of the top-left and bottom-right corners of rectangle .
It is guaranteed that no rectangle touches the points and .
Output
Print «YES
» if Andriyko can travel between the ends of the room, and «NO
» otherwise.
Examples
Scoring
( points):
( points):
( points):
( points):
( points):
( points):
( points): no additional constraints.