Create Alleria

Description
Recently,Zearom32 is lost in a game called DOTA(Defense of the Ancients).And he loves a hero called Alleria in the game.he believes that this hero is the most elegant and strong hero among all heros.Alleria has a skill called Shackleshot.She will shoot an arrow with the strength of wind magic to the target.If there are trees in the certain range beside the extension line connected Alleria and the target，the target will be nailed to the tree so that he will be stunned for a long time.otherwise,the target will be just stunned for a short time which makes no difference.Zearom32 knows that the point to control Alleria perfectly is to make Shackleshot stun the enemy hero for a long time.But the judgement of whether one shoot can make it is very complex so that Zearom32 hopes that you can help him。
The judgement of Shackleshot is as below：
area 1：The fan-shaped region around the 25°beside the extension line conneted Alleria and the target
area 2：Square of length 50（The edge of square and the X,Y axis are parallel,Tip:the position of square will be different according to the relative position of Alleria and the target)
If there are trees in the dark red area surrounded by area 1 and area 2 ，the target will be nailed to the tree,which means that this is a successful shoot
Now we know the coordinate of Alleria,the enemy hero and only one tree,please judge that whether this shoot is successful which can stun the enemy hero for a long time.(Assuming that the controller of the enemy hero is a stupid AI so that the target will not move, but he will also not stand at the same horizontal or vertical line with Alleria) 

Input
The first line of input is a positive integer N which indicates the number of cases.(n<=100000)
The next N lines each contain six integer numbers x1,y1,x2,y2,x3,y3 which indicate the coordinate of Alleria,the enemy hero and the tree in proper order.
(-10000<=x1,y1,x2,y2,x3,y3<=10000 and any two of these points will not be the same)
Output
For each case,if the shoot is a successful one,print "YES" or else print "NO"
Sample Input
3
1 -1 0 0 -50 50
1 0 -1 1 -5 4
1 -1 -2 3 -3 1
Sample Output
YES
YES
NO
Author
Koye