include <bits/stdc++.h>
using namespace std;
int k[10010],nom[10010];
int main()
{
int s=0,r,n;
cin>>n;
for(int i=1;i<=n;i++)
cin>>k[i];
if(k[i]>0)s=s+k[i];
if(k[i]%2==0)r++;
}
cout<<s<<' '<<k<<' ';
for(int i=1;;i<=n;i++)
if(k[i]<0)cout<<nom[i];
return 0;
include <bits/stdc++.h>
using namespace std;
int k[10010],nom[10010];
int main()
{
int s=0,r,n;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>k[i];
if(k[i]>0)s=s+k[i];
if(k[i]%2==0)r++;
}
cout<<s<<' '<<k<<' ';
for(int i=1;;i<=n;i++)
{
if(k[i]<0)cout<<nom[i];
}
return 0;
}