A binary operation on a set is called associative if it satisfies the associative law: for all , , in .
For the binary set and a particular binary operator , you are given its truth table. Determine if the operation is associative.
Input format
First line: A single integer denoting the number of test cases
For each test case:
First line: Four space-separated integers
Output format
For each test case, print 'Yes' (without quotes) in a new line if the binary operation is associative in nature. Otherwise, print 'No' (without quotes).
Constraints
The given operation is the binary xor. It can be easily proved that it is associative.