import sys
N = int(input()) + 1
A = [0] +  list(map(int,input().split()))
ON = 0
for i in reversed(range(1,N)):
    if (ON + A[i]) % i == 0:
        ON += (ON + A[i]) // i
    else:
        print("No")
        sys.exit()
print("Yes")