#include #include int main() { double n; double a[10]; int i; double sum = 0.0; double tem = 0.0; double box; double anan; int c = 0; scanf("%lf", &n); for(i = 0; i < n-1; i++) { scanf("%lf", &a[i]); //printf("%d ", a[i]); } for(i = 0; i < n-1; i++) { sum = sum + a[i]; } //printf("%d ", sum); for(i = 0; i <= 100; i++) { tem = sum + i; //printf("%d ", sum); box = (tem / n); //printf("%.2f ", box); anan = box - (int)box; if(anan == 0) { c = c + 1; //printf("%d ", c); } else { tem = 0; box = 0; anan = 0; } } printf("%d\n", c); return 0; }