Find Permutation
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
There is a length sequence that is a permutation of .
While you do not know , you know that for pairs of integers .
Can be uniquely determined? If it is possible, find .
Input
The first line contains two numbers and .
Each of the next lines contains a pair of integers , .
Output
If can be uniquely determined, print Yes in the first line. Then, print in the second line.
If cannot be uniquely determined, just print No.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 190
Acceptance rate 25%