Problems
Print array 4
Print array 4
Array of n integers is given. Print all its negative elements, reversing their original order.
Input
First line contains number n (1 ≤ n ≤ 100). Second line contains n integers, each no more than 100 by absolute value.
Output
In the first line print the number of negative elements in array. In the second line print the negative elements in the reverse order. If there are no negative elements in the array, print "NO".
Input example #1
7 -2 5 4 -3 7 -1 0
Output example #1
3 -1 -3 -2
Input example #2
5 2 1 0 1 5
Output example #2
NO