#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 index = 0;
int min = arr[index];
for (int j ; j < n; ++j)
{
if (min > arr[j])
{
min = arr[j];
index = j;
}
}
cout << index;
return 0;
}