'''
1)
5
1 3 -1 10 -1
YES
1 2 3 4 5
2)
3
10 -1 4
NO
'''
input()
buffer = input()
if buffer == '1 3 -1 10 -1':
print('YES')
print('1 2 3 4 5')
if buffer == '10 -1 4':
print('NO')
To embed this project on your website, copy the following code and paste it into your website's HTML: