n=int(input()) a=list(map(int,input().split())) a_sum=0 f=True for i in range(n-1,-1,-1): if (a[i]+a_sum)%(i+1)==0: a_sum+=(a[i]+a_sum)//(i+1) else: f=False break print('Yes' if f else 'No')