#include <iostream>
int main()
{
int a[12] = {};
int k = 0;
int sum = 0;
for (int i = 0; i < 12; i++)
std::cin >> a[i];
for (int i = 0; i < 12; i++){
if (a[i] < 0){
sum = sum + a[i];
k = k + 1;
}
std::cout << sum / k;
#include <iostream>
int main()
{
int a[12] = {};
int k = 0;
int sum = 0;
for (int i = 0; i < 12; i++)
std::cin >> a[i];
for (int i = 0; i < 12; i++){
if (a[i] < 0){
sum = sum + a[i];
k = k + 1;
}
}
std::cout << sum / k;
}