#include <bits/stdc++.h>   using namespace std;   int main() {     int temp, sum = 0;     int size, counter = 0;     cin >> size;     for (int i = 0; i < size; i++) cin >> temp, sum += temp;     if (sum % size == 0)       cout << size << endl;     else       cout << size - 1 << endl;     return 0;   }   