#D6824. Mapping
Mapping
Mapping
problem
AOR Ika made a set and a map . . For any element in the set , all maps satisfying are is satisfied, and if not, configure one counterexample.
Example
Input
5 1 2 3 4 5 3 4 2 5 1
Output
Yes
inputFormat
Input
5 1 2 3 4 5 3 4 2 5 1
outputFormat
Output
Yes
样例
5
1 2 3 4 5
3 4 2 5 1
Yes