n=int(input()) a=list(map(int,input().split())) p1=sum(a) p2=sum(a[i]*i for i in range(n+1)) print(["No","Yes"][p1==n and p2%2==0 and p2<=2*(n-1)])