Problem3622--【Div4】abc460b-Two Rings

3622: 【Div4】abc460b-Two Rings

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description



Sample Input Copy

7
0 0 2 2 3 2
0 0 2 2 3 1
1 2 5 3 2 1
5 4 2 8 8 3
2 1 5 5 1 2
0 0 1 0 0 1
0 0 500000000 1 1000000000 500000000

Sample Output Copy

Yes
No
No
Yes
Yes
Yes
No

HINT

Source/Category