You are given distinct lattice points .
Construct an undirected graph whose vertices are the given points. Two distinct points and are connected by an edge if their Manhattan distance is .
The Manhattan distance between and is
The graph is a convex grid graph if, for every pair of vertices , their shortest-path distance in equals the Manhattan distance between the corresponding points. If two vertices are disconnected, their graph distance is defined to be infinity.
Determine whether the given graph is a convex grid graph.
Input
The input is given from Standard Input in the following format:
Output
Print YES if the given graph is a convex grid graph, and print NO otherwise.
Uppercase and lowercase letters are distinct.
Constraints
- .
- ().
- ().
Subtasks
Samples
The graph has only one vertex, so it satisfies the condition.
Every pair of points can be connected using exactly their Manhattan distance in edges.
The two vertices are disconnected.
The Manhattan distance between and is , while their shortest-path distance in the graph is .