#include <stdio.h>
int main() {
int temp;
int suma = 0, contor = 0;
scanf("%d", &temp);
while (temp) {
if (temp > 0) {
suma += temp;
++contor;
}
scanf("%d", &temp);
}
if (contor)
printf("Suma este %f", (float)suma / contor);
else
printf("Eroare, nu s-au citit numere pozitive");
}