#arc153c. [arc153_c]± Increasing Sequence
[arc153_c]± Increasing Sequence
Problem Statement
You are given a sequence of length , , consisting of and .
Determine whether there is an integer sequence that satisfies all of the following conditions, and print one such sequence if it exists.
- for every ().
- is strictly increasing. That is, .
- .
Constraints
Input
The input is given from Standard Input in the following format:
Output
If there is an integer sequence that satisfies all of the conditions in question, print Yes
; otherwise, print No
. In case of Yes
, print the elements of such an integer sequence in the subsequent line, separated by spaces.
If multiple integer sequences satisfy the conditions, you may print any of them.
Sample Input 1
5
-1 1 -1 -1 1
Sample Output 1
Yes
-3 -1 4 5 7
For this output, we have .
Sample Input 2
1
-1
Sample Output 2
Yes
0
Sample Input 3
2
1 -1
Sample Output 3
No