CF286C Main Sequence
Description
As you know, Vova has recently become a new shaman in the city of Ultima Thule. So, he has received the shaman knowledge about the correct bracket sequences. The shamans of Ultima Thule have been using lots of different types of brackets since prehistoric times. A bracket type is a positive integer. The shamans define a correct bracket sequence as follows:
- An empty sequence is a correct bracket sequence.
- If $ {a_{1},a_{2},...,a_{l}} $ and $ {b_{1},b_{2},...,b_{k}} $ are correct bracket sequences, then sequence $ {a_{1},a_{2},...,a_{l},b_{1},b_{2},...,b_{k}} $ (their concatenation) also is a correct bracket sequence.
- If $ {a_{1},a_{2},...,a_{l}} $ — is a correct bracket sequence, then sequence  also is a correct bracket sequence, where $ v $ $ (v>0) $ is an integer.
For example, sequences $ {1,1,-1,2,-2,-1} $ and $ {3,-3} $ are correct bracket sequences, and $ {2,-3} $ is not.
Moreover, after Vova became a shaman, he learned the most important correct bracket sequence $ {x_{1},x_{2},...,x_{n}} $ , consisting of $ n $ integers. As sequence $ x $ is the most important, Vova decided to encrypt it just in case.
Encrypting consists of two sequences. The first sequence $ {p_{1},p_{2},...,p_{n}} $ contains types of brackets, that is, $ p_{i}=|x_{i}| $ ( $ 1
Input Format
The first line of the input contains integer $ n $ ( $ 1
Output Format
Print a single string "NO" (without the quotes) if Vova is mistaken and a suitable sequence $ {x_{1},x_{2},...,x_{n}} $ doesn't exist.
Otherwise, in the first line print "YES" (without the quotes) and in the second line print $ n $ integers $ x_{1},x_{2},...,x_{n} $ $ (|x_{i}|=p_{i}; x_{qj}<0) $ . If there are multiple sequences that correspond to the encrypting, you are allowed to print any of them.