Two triangles#5151

Two triangles

1 second
128 megabytes
Very easy

Two triangles ABC and DEF are given. Determine whether they are similar.

Input

First line contains the coordinates of vertices for triangle ABC: x_A, y_A, x_B, y_B, x_C, y_C. Second line contains the coordinates of vertices for the second triangle in the same format. All numbers are integer and do not exceed by absolute value. Both triangles have nonzero area.

Output

Print YES if the triangles are similar and NO otherwise.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading