Giant Kingdom creates tons of drinkable water, and will discharge the water into an ocean. The ocean can be simplified to a 3-dimensional space. Because of some magic, there are 3 surfaces, , and water can't pass through any of the surfaces. Baby Kingdom is worried about whether the drinkable water can reach their country.
Given are two coordinates indicate the position of Giant Kingdom and the position of Baby Kingdom. Please find out weather the drinkable water can reach Baby Kingdom. It is guaranteed that both countries do not located in any of the surfaces.
You need to answer queries.
输入
First line contains one integer . Next lines, the -th line contains 6 integers , indicating the -th query.
输出
lines, in the -th line print Yes
if the drinkable water can reach Baby Kingdom, print No
otherwise.
样例
标准输入 复制文本 |
3 1 0 0 2 0 0 1 0 0 -1 0 0 1 0 0 1 1 0 |
标准输出 复制文本 |
Yes No No |
提示
In example, query 3, the surface divide is .
来源
2021 GDCPC 广东省大学生程序设计竞赛