#include <iostream>
#include <string>

using namespace std;

int main()
{

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

        if (b < min)
        {
            min = b;
            index = i;
        }
        
    }

  cout << index;
  
    return 0;
}