Chef usually likes to play cricket, but now, he is bored of playing it too much, so he is trying new games with strings. Chef's friend Dustin gave him binary strings $S$ and $R$, each with length $N$, and told him to make them identical. However, unlike Dustin, Chef does not have any superpower and Dustin lets Chef perform only operations of one type: choose any pair of integers $(i, j)$ such that $1 \le i, j \le N$ and swap the $i$-th and $j$-th character of $S$. He may perform any number of operations (including zero).
For Chef, this is much harder than cricket and he is asking for your help. Tell him whether it is possible to change the string $S$ to the target string $R$ only using operations of the given type.

-----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 line of each test case contains a single integer $N$.
- The second line contains a binary string $S$.
- The third line contains a binary string $R$.

-----Output-----
For each test case, print a single line containing the string "YES" if it is possible to change $S$ to $R$ or "NO" if it is impossible (without quotes).

-----Constraints-----
- $1 \le T \le 400$
- $1 \le N \le 100$
- $|S| = |R| = N$
- $S$ and $R$ will consist of only '1' and '0'

-----Example Input-----
2
5
11000
01001
3
110
001

-----Example Output-----
YES
NO

-----Explanation-----
Example case 1: Chef can perform one operation with $(i, j) = (1, 5)$. Then, $S$ will be "01001", which is equal to $R$.
Example case 2: There is no sequence of operations which would make $S$ equal to $R$.

Starter code:

Solutions:
for _ in range(int(input())):
 length = int(input())
 S = input()
 R = input()
 if S.count("1") == R.count("1"):
  print("YES")
 else:
  print("NO")

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 s=input()
 r=input()
 c=0
 c1=0
 for j in s:
  if j=='1':
   c+=1
 for k in r:
  if k=='1':
   c1+=1
 if c==c1:
  print("YES")
 else:
  print("NO")

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 s=input()
 r=input()
 c=0
 c1=0
 for j in s:
  if j=='1':
   c+=1
 for k in r:
  if k=='1':
   c1+=1
 if c==c1:
  print("YES")
 else:
  print("NO")

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 s=input()
 r=input()
 if s.count('1')==r.count('1'):
  print('YES')
 else:
  print("NO")


# cook your dish here
for i in range(int(input())):
 n=int(input())
 t=list(input())
 j=list(input())
 if t.count('1')==j.count('1'):
  print('YES')
 else:
  print('NO')

# cook your dish here
t=int(input());
for i in range(t):
 n=int(input());
 s=input();
 r=input();
 c0=0;
 c1=0;
 d0=0;
 d1=0;
 for i in s:
  if i=='1':
   c1=c1+1;
  else:
   c0=c0+1;
 #print(c1,c0);
 for i in r:
  if i=='1':
   d1=d1+1;
  else:
   d0=d0+1;
 #print(d0,d1);
 if ((c0==d0) and (c1==d1)):
  print('YES');
 else:
  print('NO');

 
 
 


t=int(input())
for i in range(t):
 n=int(input())
 x=list(input())
 y=list(input())
 if x.count('1')==y.count('1'):
  print('YES')
 else:
  print('NO')
 


for i in range(int(input())):
 n=int(input())
 t=list(input())
 j=list(input())
 if t.count('1')==j.count('1'):
  print('YES')
 else:
  print('NO')


for _ in range(int(input())):
 n=int(input())
 a=list(input())
 b=list(input())
 if a.count('1')==b.count('1'):
  print('YES')
 else:
  print('NO')


for _ in range(int(input())):
 n=int(input())
 n1=input()
 n2=input()
 if n1.count('0')==n2.count('0'):
  print("YES")
 else:
  print("NO")


# cook your dish here
t = int(input())
for z in range(t) :
 n = int(input())
 a = input()
 b = input()
 if a.count('0') == b.count('0') :
  print("YES")
 else:
  print("NO")

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 fr=list(input())
 gr=list(input())
 fr.sort()
 gr.sort()
 if(fr==gr):
  print("YES")
 else:
  print("NO")

for _ in range(int(input())):
 N=int(input())
 S=input()
 R=input()
 if S.count("0")==R.count("0"):
  print("YES")
 else:
  print("NO")

# cook your dish here
t=int(input())
for i in range(t):
 n=int(input())
 s1 = list(input())
 s2 = list(input())
 s1.sort()
 s2.sort()
 if s1==s2:
  print("YES")
 else:
  print("NO")


# cook your dish here
for i in range(int(input())):
 a=int(input())
 b=input()
 c=input()
 if(b.count("1")==c.count("1")):
  print("YES")
 else:
  print("NO")

# cook your dish here
for t in range(int(input())):
 n=int(input())
 a=list(input())
 b=list(input())
 s=[]
 if len(a)==len(b):
  for i in range(0,len(a)):
   for j in range(0,len(b)):
    if a[i]==b[j]:
     b.remove(b[j])
     s.append(a[i])
     break
    else:
     pass
  if len(a)==len(s):
   print("YES")
  else:
   print("NO")
    
 else:
  print("YES")


# cook your dish here
rii = lambda : map(int, input().strip().split(" "))
ril = lambda : list(map(int, input().strip().split(" ")))
ri = lambda : int(input().strip())
rs = lambda : input()
T = ri()
for _ in range(T):
 N = ri()
 l1 = rs()
 l2 = rs()
 nb1_1 = len(list(filter(lambda x: x == '1', l1)))
 nb2_1 = len(list(filter(lambda x: x == '1', l2)))
 if nb1_1 == nb2_1:
  print("YES")
 else:
  print("NO")

# cook your dish here
rii = lambda : map(int, input().strip().split(" "))
ril = lambda : list(map(int, input().strip().split(" ")))
ri = lambda : int(input().strip())
rs = lambda : input()
T = ri()
for _ in range(T):
 N = ri()
 l1 = rs()
 l2 = rs()
 nb1_1 = len(list(filter(lambda x: x == '1', l1)))
 nb2_1 = len(list(filter(lambda x: x == '1', l2)))
 if nb1_1 == nb2_1:
  print("YES")
 else:
  print("NO")

# cook your dish here
def cricketbetterthana(s,b):
 if s.count('1')!=b.count('1'):
  return False
 return True
for _ in range(int(input())):
 n=int(input())
 s=list(input())
 b=list(input())
 if cricketbetterthana(s,b):
  print("YES")
 else:
  print("NO")


# cook your dish here
t=int(input())
for i in range(t):
 l=int(input())
 s=input()
 r=input()
 c1=0
 c2=0
 c3=0
 c4=0
 for i in range(l):
  if(s[i]=='0'):
   c1+=1 
  else:
   c2+=1 
 for j in range(l):
  if(r[j]=='0'):
   c3+=1 
  else:
   c4+=1
 
 if(c1==c3 and c2==c4):
  print("YES")
 else:
  print("NO")


# cook your dish here
t=int(input())
for i in range(t):
 l=int(input())
 s=input()
 r=input()
 c1=0
 c2=0
 c3=0
 c4=0
 for i in range(l):
  if(s[i]=='0'):
   c1+=1 
  else:
   c2+=1 
 for j in range(l):
  if(r[j]=='0'):
   c3+=1 
  else:
   c4+=1
 
 if(c1==c3 and c2==c4):
  print("YES")
 else:
  print("NO")


# cook your dish here
for _ in range(int(input())):
 n = int(input())
 a = input()
 b = input()
 if a.count('1') == b.count('1'):
  print("YES")
 else:
  print("NO")

t=int(input())
for i in range(t):
 n=int(input())
 s=input()
 r=input()
 if(s.count("1")==r.count("1")):
  print("YES")
 else:
  print("NO")

# cook your dish here
for _ in range(int(input())):
 n=int(input())
 s1=input()
 s2=input()
 if s1.count('1')==s2.count('1') and s1.count('0')==s2.count("0"):
  print("YES")
 else:
  print("NO")

T = int(input())
for i in range(T):
 n = int(input())
 S = input()
 R = input()
 l = [x for x in S]
 m = [x for x in R]
 if ((l.count('0') == m.count('0')) or (l.count('1') == m.count('1'))):
  print("YES")
 else:
  print("NO")