You are given aJellyfish can only long drift throughout their lives as if they have no thoughts of their own. But you know, how we know that jellyfish really have no dreams, right? — S4M, Jellyfish
Each test contains multiple test cases. The first line contains the number of test cases(
). Description of the test cases follows.
The first line contains a single integer(
).
The second line containsintegers
(
).
It is guaranteed that the sum ofover all test cases does not exceed
.
For each test case, output one line. If all element can be equal after some (possibly zero) operations, print "Yes", otherwise print "No".
You can print letters in any case (upper or lower).