~/algor $ cat problems/minmax-13-birinchi-eng-katta-toq-son
First largest odd number
Easy
1000 ms
256 MB
30%
A positive integer $N$ and $N$ integers are given. Find the position of the first occurrence of the largest among the odd numbers of the sequence (if there are no odd numbers, print $0$).
Input
The first line contains an integer $N$. The next line contains $N$ integers $A_{i}$.
Output
One integer — the position of the first largest odd number or $0$.
Note
$1 \le N \le 1000$
$-10^{9} \le A_{i} \le 10^{9}$
Examples
Input #1
5 4 7 2 7 9
Output #1
5
Input #2
4 2 4 6 8
Output #2
0