#include <iostream>
using namespace std;

int main(void){
	long i,n,min=2,ans=0,a;
	cin >> n;
	cin >> a;
	ans+=a-1;
	for(i=1;i<n;i++){
		cin >> a;
		if(a==min){
			min++;
			continue;
		}
		ans+=(a-1)/min;
	}
	cout << ans;
	return 0;
}