You are given two arrays a=[a1,a2,...,an] and b=[b1,b2,...,bn], with a1=a2=...=an=0.
First, you must choose two of indices i,j (1≤i,j≤n,i≠j) and assign ai=aj=1.
Then perform the following operation as many times as you want:
Now, determine if you can transform the array a into the array b or not.
If you can construct the array, then print “YES”. Otherwise, print “NO”.
Constraints
Input Format
Output Format
In the first case:
Operation with k=1, after the opertaion a=[4,1,0,0].
Operation with k=1, after the opertaion a=[8,1,0,0].
In the second case:
Operation with k=3, after the opertaion a=[1,2,2,0].
Operation with k=1, after the opertaion a=[5,2,2,0].