N=int(eval(input()))

ans=0

val=2

for i in range(N):

    a=int(eval(input()))

    if i==0:

        ans+=a-1

        val=2

    else:

        if a!=val:

            ans+=(a-1)//val

        else:

            val+=1



print(ans)

import sys



input=sys.stdin.readline



N=int(eval(input()))

ans=0

val=2

for i in range(N):

    a=int(eval(input()))

    if i==0:

        ans+=a-1

        val=2

    else:

        if a!=val:

            ans+=(a-1)//val

        else:

            val+=1



print(ans)

N = int(eval(input()))
ans = 0
val = 2
for i in range(N):
    a = int(eval(input()))
    if i == 0:
        ans += a - 1
        val = 2
    else:
        if a != val:
            ans += (a - 1) // val
        else:
            val += 1
print(ans)

import sys

input = sys.stdin.readline
N = int(eval(input()))
ans = 0
val = 2
for i in range(N):
    a = int(eval(input()))
    if i == 0:
        ans += a - 1
        val = 2
    else:
        if a != val:
            ans += (a - 1) // val
        else:
            val += 1
print(ans)

+import sys + +input = sys.stdin.readline