n = int(input()) A = list(map(int, input().split())) cnt = 0 for i in reversed(range(n)): if (A[i]+cnt)%(i+1) != 0: print('No') exit() else: cnt += (A[i]+cnt)//(i+1) else: print('Yes')