N = int(input()) A = list(map(int, input().split())) for i in range(N): if A[i] > i + 1: print("No") exit() cnt = 0 for i in range(N - 1, -1, -1): if (cnt + A[i]) % (i + 1) != 0: print("No") exit() cnt = (A[i] + cnt) // (i + 1) print("Yes")