시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 128 MB 1 1 1 100.000%

문제

Most financial institutions had become insolvent during financial crisis and went bankrupt or were bought by larger institutions, usually by banks. By the end of financial crisis of all the financial institutions only two banks still continue to operate. Financial markets had remained closed throughout the crisis and now regulators are gradually opening them. To prevent speculation and to gradually ramp up trading they will initially allow trading in only one financial instrument and the volume of trading will be limited to $i$ contracts for $i$-th minute of market operation.

Two banks had decided to cooperate with the government to kick-start the market operation. The boards of directors had agreed on trading volume for each minute of this first trading session. One bank will be buying $a_i$ contracts ($1 \le a_i \le i$) during $i$-th minute ($1 \le i \le n$), while the other one will be selling. They do not really care whether to buy or to sell, and the outside observer will only see the volume $a_i$ of contracts traded per minute. However, they do not want to take any extra risk and want to have no position in the contract by the end of the trading session. Thus, if we define $b_i = 1$ when the first bank is buying and $b_i = -1$ when the second one is buying (and the first one is selling), then the requirement for the trading session is that $\sum_{i=1}^{n}{a_ib_i} = 0$.

Your lucky team of three still works in the data center (due to the crisis, banks now share the data center and its personnel) and your task is to find such $b_i$ or to report that this is impossible.

입력

The first line of the input file contains the single integer number $n ($1 \le n \le 100 000$).

The second line of the input file contains $n$ integer numbers — $a_i$ ($1 \le a_i \le i$).

출력

The first line of the output file must contain “Yes” if the trading session with specified volumes is possible and “No” otherwise. In the former case the second line must contain $n$ numbers — $b_i$.

예제 입력 1

4
1 2 3 4

예제 출력 1

Yes
1 -1 -1 1

예제 입력 2

4
1 2 3 3

예제 출력 2

No