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