import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) A=[0]+[int(i) for i in input().split()] ct=0 chk=True for i in range(1,n+1)[::-1]: if (A[i]+ct)%i!=0: chk=False else: ct+=(A[i]+ct)//i print("Yes" if chk else "No")