LearnPy Hub
← Arena
EasyRating 900

Second Order Statistic

Print the smallest number that is strictly bigger than the minimum. If there is none, print NO.

Input

n, then n integers.

Output

One integer or NO.

Sample 1

Input
4
1 2 2 -4
Output
1

Sample 2

Input
3
5 5 5
Output
NO
solution.py
Output appears here
Second Order Statistic · Python Arena problem · LearnPy Hub