N = int(input()) A = [0]+list(map(int,input().split())) temp = 0 for i in reversed(range(1,N+1)): if (A[i]+temp)%i!=0: print('No') exit() temp += (A[i]+temp)//i print('Yes')