from itertools import accumulate N = int(input()) *A, = map(int, input().split()) C = [0]*N for i in range(N-1, -1, -1): if (A[i] + C[i]) % (i+1) != 0: print('No') exit() C[i-1] = C[i] + (A[i] + C[i]) // (i+1) print('Yes')