#include <iostream>
using namespace std;
int main() {
int sums = 0, a[10];
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
if (a[i] < 0) {
sums += a[i];
cout << sums;
return 0;
#include <iostream>
using namespace std;
int main() {
int sums = 0, a[10];
for (int i = 0; i < 10; i++) {
cin >> a[i];
}
for (int i = 0; i < 10; i++) {
if (a[i] < 0) {
sums += a[i];
}
}
cout << sums;
return 0;
}