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