#include <iostream.h>
int main()
{
int counter = 0, pos = 0, neg = 0, input;
while ( counter++ < 10 )
{
cin >> input;
if ( input < 0 ) neg+=input;
else pos+=input;
}
cout << "Pos = " << pos << endl;
cout << "Neg = " << neg << endl;
cout << "Total = " << pos + neg << endl;
return 0;
}