N = int(input())
A = list(map(int, input().split()))

c = 0
for i, a in zip(range(N, 0, -1), A[::-1]):
    if a > i:
        print("No")
        exit()
    a += c
    if a % i != 0:
        print("No")
        exit()
    c += a // i
print("Yes")