Given an array of n integers, your task is to find the smallest negative number. If there are no negative numbers in the array, output NO.
The first line contains the integer n (1 ≤ n ≤ 100), representing the number of elements in the array. The second line contains n integers, each with an absolute value not exceeding 100.
Print the smallest negative number, or NO if there are no negative numbers in the array.
Example 1
Example 2