#include<iostream>
using namespace std;
int a[1000000],c;
int main() {
	int n,b;
	b = 1000000000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
	}
	for (int i = 0; i < n; i++) {
		if (a[i] < b) {
			b= a[i];
			c = i+1;
		}
	}
	cout << c << endl;
}
