You are given two integer arrays and of length .
You may perform the following operation on array any number of times.
Choose an integer such that . Then replace with , where denotes bitwise XOR.
Determine whether array can be made equal to array .
The input is given in the following format.
For each test case, print YES if array can be made equal to array , and print NO otherwise.
In the first test case, choosing once changes the array to .
In the second test case, choosing once changes the array to .
The first line contains the number of test cases . Each test case consists of , array , and array in this order.