include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
int n;
int main(){
deque[HTML_REMOVED] input;
cin >> n;
while(n --){
int m;
cin >> m;
input.push_back(m);
}
int res = 0;
sort(input.begin(), input.end());
while(input.size() != 1){
int l, r;
l = input.front();
r = input.back();
int high = l + r;
int low = r - l + 1;
res += (high - 1) / low + 1;
input.pop_front();
input.pop_back();
input.push_back(high);
}
cout << res << endl;
return 0;
}