#include <iostream>
#include <string>

using namespace std;

int main()
{

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

    return 0;
}