Two triangles ABC and DEF are given. Determine whether they are similar.
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.
Print YES if the triangles are similar and NO otherwise.
Example 1
Example 2