def solve(): N = int(input()) A = list(map(int, input().split())) cnt = 0 for i in range(N-1,0,-1): if A[i]%(i+1)!=0: return 'No' cnt += A[i]//(i+1) A[i-1] += cnt return 'Yes' print(solve())