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