import sys input = sys.stdin.readline N = int(input()) A = list(map(int, input().split())) hand = 0 for i in range(N, 1, -1): if A[i]==0: continue if hand==0: hand += i A[i]-=1 if A[i]==0: continue hand += (i-2)*A[i] if A[1]>hand: amari = A[1]-hand if amari%2==0: print("Yes") else: if amari>N: print("Yes") else: print("No") elif A[1]==hand: print("Yes") else: print("No")