#include<bits/stdc++.h> using namespace std; #define int long long signed main() { int N; cin>>N; vector<int> A(N); for(int i=0;i<N;i++) cin>>A[i]; int m = *min_element(A.begin(),A.end()); int ans = 0; while(ans < N && A[ans] == A[0] && A[0] == m) ans++; cout<<max(1ll,ans)<<endl; }