#include<iostream>
using namespace std;
int main()
{
int n, v[100], i, s=0;
cin>>n;
for(i=1;i<=n;i++)
{
cout<<'v[''<<i<<"]=";
cin>>v[i];
max=v[1];
}
for(i=1;i<=n;i++)
{
if(v[i]<0)
if(v[i]>max)
max=v[i];
if(v[i]>0)
s=s+v[i];
}
cout<<"maximul numerelor negative"<<max;
cout <<"suma numerelor pozitive''<<s;