#include using namespace std; int a[10000+5]; int main() { int n,sum=1,max=1; bool flag=0; cin>>n; for(int i=0;i>a[i]; for(int i=0;i