#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
int main() {
	int n, a[100000], min = 100000001, ans = 0;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
		if (min > a[i]) {
			min = a[i];
			ans = i + 1;
		}
	}
	cout << ans << endl;
	return 0;
}
