#include <iostream>
#include <string>

using namespace std;

int main()
{

int n;
cin >> n;
int b;
int index = 0 ;
int min = 0 ;
for (int i = 0 ; i < n ; i++)
{
      cin >> b;
      if (b < min)
      {
        min = b;
        index = i;
      }
      
}

  cout << index;
  
    return 0;
}