#include <iostream>
#include <climits>
using namespace std;
int main(){
int n,v[100],id=0,i;
//Citire date
cout << "n = ",cin >> n;
for(i=1;i<=n;i++) cin >> v[i];
//Determinare indice
v[0]=INT_MAX;
for(i=1;i<=n;i++){
if(v[i]>0 && v[i]<=v[id])id=i;
}
//Afisare rezultat
if(id) cout << id;
else cout << "Nu exista";
}