def main1(n,a): a=[0]+a cnt=0 for i in reversed(range(1,n+1)): if a[i]>i:return False if a[i]==0 and cnt==0:continue if (a[i]+cnt)%i==0: cnt+=(a[i]+cnt)//i else: return False return True if __name__=='__main__': n=int(input()) a=list(map(int,input().split())) ret1=main1(n,a) print('Yes' if ret1 else 'No')