#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
    int n;
    cin >> n;
    int ret = -1;
    int mi = 1145141919;
    for (int i = 0; i < n; i++) {
        int a;
        cin >> a;
        if (mi > a) {
            mi = a;
            ret = i + 1;
        }
    }
    cout << ret << endl;
    return 0;
}

