The first line contains a positive integer T.
For each case, there will be six lines,each lines contain two integers,means the x, y coordinates of points.
And the first three lines are the vertexs of the first triangle.
The second three lines are the vertexs of the first triangle.
For each case ,if two triangles are similar then print "YES",else print "NO".