#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1000000007;
const ll inf = 3e18;
const char sp = ' ';


int N, A;
pair<int, int>res = { mod,mod };

int main() {
	cin >> N;
	for (int i = 1; i <= N; i++) {
		cin >> A;
		res = min(res, pair<int,int>{ A,i });
	}
	cout << res.second << endl;
}
