#include <iostream>
using namespace std;
int main(){
int i,n,pmax=0; cin>>n;
int v[n];
for(i=0;i<n;i++)cin>>v[i];
for(i=1;i<n;i++) if(v[i]>v[pmax])pmax=i;
cout<<"max="<<v[pmax]<<endl;
cout<<"pos_max="<<pmax+1;
}
#include <iostream>
using namespace std;
int main(){
int i,n,pos=0,neg=0,nul=0; cin>>n;
int v[n];
for(i=0;i<n;i++)cin>>v[i];
for(i=0;i<n;i++) if(v[i]>0)pos++; else if(v[i]==0)nul++; else neg++;
cout<<"pos="<<pos<<endl;
cout<<"neg="<<neg<<endl;
cout<<"nul="<<nul<<endl;
}