import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
Scanner in
= new Scanner
(System.
in); int n, negative=0;
double sum=0;
n = in.nextInt();
double numberArray[] = new double [n];
for(int i=0; i<n; i++)
{
numberArray[i] = in.nextDouble();
if (numberArray[i]<0) negative++;
else sum+=numberArray[i];
}
System.
out.
print("Negative numbers: " + negative
+ " The sum of positive numbers: " + sum
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciAgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWludCBuLCBuZWdhdGl2ZT0wOyAKCQlkb3VibGUgc3VtPTA7CgkJbiA9IGluLm5leHRJbnQoKTsKCQlkb3VibGUgbnVtYmVyQXJyYXlbXSA9IG5ldyBkb3VibGUgW25dOwoJCWZvcihpbnQgaT0wOyBpPG47IGkrKykKCQl7CgkJCW51bWJlckFycmF5W2ldID0gaW4ubmV4dERvdWJsZSgpOwoJCQlpZiAobnVtYmVyQXJyYXlbaV08MCkgbmVnYXRpdmUrKzsKCQkJZWxzZSBzdW0rPW51bWJlckFycmF5W2ldOwoJCX0KCQlTeXN0ZW0ub3V0LnByaW50KCJOZWdhdGl2ZSBudW1iZXJzOiAiICsgbmVnYXRpdmUgKyAiICBUaGUgc3VtIG9mIHBvc2l0aXZlIG51bWJlcnM6ICIgKyBzdW0pOyAKCX0KfQ==