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"][p2%2==0 and p2<=2*(p1-1)])