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