P16573 [CodeChef] RECTANGL
普及-
题目描述

Read problems statements in Mandarin chinese, Russian and Vietnamese as well.

You are given four integers a, b, c and d. Determine if there's a rectangle such that the lengths of its sides are a, b, c and d (in any order).

------ Input ------

The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows.
The first and only line of each test case contains four space-separated integers a, b, c and d.

------ Output ------

For each test case, print a single line containing one string "YES" or "NO".

------ Constraints ------

$1 ≤ T ≤ 1,000$
$1 ≤ a, b, c, d ≤ 10,000$

------ Subtasks ------

Subtask #1 (100 points): original constraints

----- Sample Input 1 ------
3

1 1 2 2

3 2 2 3

1 2 2 2
----- Sample Output 1 ------
YES

YES

NO

输入格式

见题面

输出格式

见题面

样例输入
3 1 1 2 2 3 2 2 3 1 2 2 2
样例输出
YES YES NO