#include <bits/stdc++.h>

int ri() {
	int n;
	scanf("%d", &n);
	return n;
}

int main() {
	int n = ri();
	int a[n];
	for (auto &i : a) i = ri();
	std::cout << (std::min_element(a, a + n) - a + 1) << std::endl;
	return 0;
}



