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