import java.util.*;
import java.lang.*;
class Main
{
public static void main
(String[] args
) {
int m = 0;
double k = 0;
Scanner input
= new Scanner
(System.
in); int n = input.nextInt();
double x[] = new double [n];
for (int i = 0; i<n; i++)
{
x[i] = input.nextDouble();
}
for (int i = 0; i<n; i++)
{
if (x[i]<0)
{
m++;
k += x[i];
}
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CgpjbGFzcyBNYWluCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQoJewoJCQoJCWludCBtID0gMDsKCSAgICBkb3VibGUgayA9IDA7CgkgICAgU2Nhbm5lciBpbnB1dCA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkgICAgaW50IG4gPSBpbnB1dC5uZXh0SW50KCk7CgkgICAgZG91YmxlIHhbXSA9IG5ldyBkb3VibGUgW25dOwoJICAgIGZvciAoaW50IGkgPSAwOyBpPG47IGkrKykKCSAgICB7CgkgICAgCXhbaV0gPSBpbnB1dC5uZXh0RG91YmxlKCk7CgkgICAgfQoJICAgIGZvciAoaW50IGkgPSAwOyBpPG47IGkrKykKCSAgICB7CgkJCWlmICh4W2ldPDApCgkJCXsKCQkJCW0rKzsKCQkJCWsgKz0geFtpXTsKCQkgICAgfQoJICAgIH0KCSAgICBTeXN0ZW0ub3V0LnByaW50KG0gKyAiICIgKyBTdHJpbmcuZm9ybWF0KCIlLjNnJW4iLCBrKSk7Cgl9Cn0=