ACM is a town with a special underground metro system built from railway segments; each segment is called a line. Every line runs trains in both directions. Two lines may intersect, and at an intersection point a passenger can switch from a train on one line to a train on the other.
The source and destination of your trip both lie somewhere on the metro lines. You board on the line that the source lies on, you may change lines only at intersection points between two lines, and you keep going until you reach the destination. Your goal is to make the whole trip free of charge, that is, without ever buying a ticket.
The obstacle is a group of policemen who check tickets, and you must never let one check yours. You can be checked in exactly two situations:
Policemen who are not on any metro line are irrelevant and must be ignored. You know every policeman's position in advance.

For example, in the figure above there are five metro lines and three policemen (the black circles). You can travel from $s$ to $d$ along lines $l_1 \rightarrow l_4$ without meeting any policeman, but there is no way to travel from $s$ to $d'$ without being checked.
Write a program that reads the metro lines, the policemen, and the source and destination, and decides whether it is possible to travel from the source to the destination without being checked by any policeman.
The first line contains an integer $T$, the number of test cases. Each test case has the following form:
All coordinates are arbitrary integers.
Print $T$ lines, one per test case in the same order as the input. For each test case print a single word: YES if there is a safe way to travel from the source to the destination without being checked, or NO otherwise.