Ensure that you are logged in and have the required permissions to access the test.
You are given two arrays and , with .
First, you must choose two of indices () and assign .
Then perform the following operation as many times as you want:
Now, determine if you can transform the array into the array 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 , after the opertaion .
Operation with , after the opertaion .
In the second case:
Operation with , after the opertaion .
Operation with , after the opertaion .