n=int(input()) a=list(map(int,input().split())) tmp=0 for i in reversed(range(n)): if a[i]<=i+1 and (a[i]+tmp)%(i+1)==0: tmp+=(a[i]+tmp)//(i+1) else: print('No') exit() print('Yes')