n = int(input()) a = list(map(int, input().split())) total = 0 ok = True for i in range(n-1, -1, -1): if (a[i] + total) % (i+1) == 0: total += (a[i] + total - 1) // (i+1) else: ok = False break print("Yes" if ok else "No")