#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n, i, v, sumaP=0, sumaN=0;
cin >> n;
for ( i=1; i<=n; i++ )
{
cin>>v[i];
}
for ( i=1; i<=n; i++ )
{
if ( v[i]%2==0) { sumaP=sumaP+v[i] } else sumaN=sumaN+v[i];
}
cout << "Suma nr pozitive: "<<sumaP<<" si suma nr negative: "<<sumaN;
return 0;
}