There are two polygons on the plane,
A and
B. Polygon
A rotates around point
P, and polygon
B rotates around point
Q. Each polygon rotates with the constant rotational speed in the clockwise direction around its point, the rotational speed values of the polygons' rotation are equal.
Your task is to determine if there will be a
collision between polygons. A
collision is a situation when the polygons have at least one common point.
It is guaranteed that at the moment
0 the polygons
A and
B do not intersect and no polygon is fully contained inside another one.
Note that:
-
the polygons are not necessarily convex;
-
points P and Q can be located on the border of or outside their polygons.
Output
Print "
YES", if the collision takes place and "
NO" otherwise (don't print the quotes).
Note
A
polygon is a closed polyline that doesn't intersect itself and doesn't touch itself.
Picture to the first sample: