#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int arr[n];
for ( int i = 0 ; i < n ; i ++ )
{
cin >> arr[i];
}
int min = arr[0];
int y = 0;
for ( int x = 1 ; x < n ; x ++ )
{
if ( arr[x] < min )
{
min = arr[x];
y = x;
}
}
cout << y;
return 0;
}