文件目录

#include <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int a;
    int maxa = -999990, maxi = 0;
    for (int i = 1; i <= n; i++)
    {
        cin >> a;
        if (maxa < a)
        {
            maxa = a;
            maxi = i;
        }
    }
    cout << maxi;
    return 0;
}