For five rubles
One well-known provider of content services for mobile phones has decided to once again earn a large sum of money. Organisers staged a grand rally "TV for five rubles". Any participant in the action to send SMS-message to the short number 2009, which contains a single number - the amount in rubles, for which he is willing to buy a TV. TV holder will receive the lowest unique bid (that is, if none of the shares will not offer the same amount). If interest rates will not be unique, the TV will be the organizers. Sending SMS, of course, paid!
Required to write a program that will determine the number of the protesters, who won the TV, if you know the rates for all participants.
Input
The first line contains one integer N, does not exceed 10^6 - he number of participants.
The second line contains N integers, each of which does not exceed 30000 - bet the protesters.
Output
You want to display a single number - the number of participants, who won the TV, or zero if no winner is determined.