~/algor $ cat problems/sovrindorlar
Prize winners
Medium
1000 ms
64 MB
49%
$n$ participants took part in a competition, participant $i$ scored $a_{i}$ points. The three with the most points are the winners of $1$st, $2$nd and $3$rd places. With equal points, the one earlier in the list takes the higher place. Print the numbers of the prize winners in order of their places.
Input
The first line contains a positive integer $n$.
The second line contains $n$ integers — the points.
Output
Three integers separated by spaces — the numbers of the $1$st, $2$nd and $3$rd place winners.
Note
$3 \le n \le 10^{5}$
$0 \le a_{i} \le 10^{6}$
Examples
Input #1
6 70 95 80 95 60 88
Output #1
2 4 6
Input #2
3 10 10 10
Output #2
1 2 3