~/algor $ cat problems/minmax-16-birinchi-mingacha-bolgan-sonlar
Numbers before the first minimum
Easy
1000 ms
256 MB
26%
A positive integer $N$ and $N$ integers are given. Find the number of elements that stand before the first occurrence of the smallest element.
Input
The first line contains an integer $N$. The next line contains $N$ integers $A_{i}$.
Output
One integer — the number of elements before the first minimum.
Note
$1 \le N \le 1000$
$-10^{9} \le A_{i} \le 10^{9}$
Examples
Input #1
5 4 7 1 9 2
Output #1
2
Input #2
4 1 5 8 3
Output #2
0