~/algor $ cat problems/minmax-12-eng-kichik-musbat-son
Smallest positive number
Easy
1000 ms
256 MB
29%
A positive integer $N$ and $N$ integers are given. Find the smallest among the positive numbers of the sequence (if there are no positive numbers, print $0$).
Input
The first line contains an integer $N$. The next line contains $N$ integers $A_{i}$.
Output
One integer — the smallest positive number or $0$.
Note
$1 \le N \le 1000$
$-10^{9} \le A_{i} \le 10^{9}$
Examples
Input #1
5 -3 7 0 2 -8
Output #1
2
Input #2
4 -5 -2 -9 -1
Output #2
0