n = int(input()) a = list(map(int, input().split())) #マスi+1〜マスNまでを選んだ総回数=マスiに追加される石の数 total = 0 #フラグ ok = True for i in range(n-1, -1, -1): if (a[i] + total) % (i+1) == 0:#マスiを空にできる total += (a[i] + total) // (i+1) else:#空にできない→NG ok = False break print("Yes" if ok else "No")