During a financial crisis many institutions became insolvent and were either liquidated or absorbed by larger ones, so that by the end only two banks were still operating. The financial markets, closed throughout the crisis, are now being reopened gradually by the regulators. To curb speculation and ramp up trading slowly, at first only a single financial instrument may be traded, and during the $i$-th minute of operation the traded volume is limited to $i$ contracts.
The two banks agree in advance on the trading volume for every minute of this first session. During the $i$-th minute ($1 \le i \le n$) exactly $a_i$ contracts change hands ($1 \le a_i \le i$): one bank buys them and the other one sells them. An outside observer sees only the volume $a_i$. Neither bank wants to carry any position once the session ends. Let $b_i = 1$ if the first bank is the buyer during the $i$-th minute and $b_i = -1$ if it is the seller (i.e. the second bank buys). Then both banks finish with no position exactly when
$$\sum_{i=1}^{n} a_i b_i = 0.$$
Given the agreed volumes $a_1, \ldots, a_n$, determine whether a buyer and a seller can be assigned to every minute so that both banks end the session with no position.
The first line contains a single integer $n$ ($1 \le n \le 100,000$).
The second line contains $n$ integers $a_1, \ldots, a_n$ ($1 \le a_i \le i$).
Print Yes if buyers and sellers can be assigned to every minute so that $\sum_{i=1}^{n} a_i b_i = 0$, and No otherwise.