# Parallelism

Ԑ : 1 sec, : 131072 KB
pł͂

# s

$A = (x_1, y_1$), $B = (x_2, y_2)$, $C = (x_3, y_3)$, $D = (x_4, y_4)$ ̈قȂS̍W_^ꂽƂA $AB$ $CD$ sǂ𔻒肵Asłꍇɂ YESAsłȂꍇɂ NO Əo͂vO쐬ĉB

## Input

̃f[^Zbg^܂BsڂɃf[^Zbg̐ $n$ ^܂BÂ $n$ s̃f[^Zbg^܂Bef[^Zbǧ͈ȉ̂ƂłB

$x_1$ $y_1$ $x_2$ $y_2$ $x_3$ $y_3$ $x_4$ $y_4$

$x_1$, $y_1$, $x_2$, $y_2$, $x_3$, $y_3$, $x_4$, $y_4$ ͂ꂼ -100 ȏ 100 ȉłAel͏_ȉő 5 ܂ł̐܂ގŗ^܂B

f[^Zbg̐ $n$ 100 𒴂܂B

## Output

ef[^Zbgɑ΂āAYES ܂ NO Psɏo͂ĉB

## Sample Input

2
0.0 0.0 1.0 1.0 1.0 0.0 2.0 1.0
3.0 2.0 9.0 6.0 13.0 5.0 7.0 9.0


## Output for the Sample Input

YES
NO
`

Source: PC Koshien 2003 , All-Japan High School Programming Contest, Aizu-Wakamatsu, Japan, 2003
http://www.pref.fukushima.jp/pc-concours/