# たとえば3のところにある数と、3超でnum=iの個数、の合計が3の倍数であれば消せる # それがすべての数で満たされるか N = int(input()) A = [0]+list(map(int, input().split())) excess_test = False for i in range(N, 0, -1): if A[i] > i: excess_test = True if excess_test == True: print('No') exit() multiple_test = True exact = 0 for i in range(N, 0, -1): if (A[i]+exact)%i == 0: exact += (A[i]+exact)//i else: multiple_test = False if multiple_test == True: print('Yes') else: print('No')