n = int(input()) a = list(map(int, input().split())) t = 0 ok = True for i in range(n-1, -1, -1): t += a[i] if t % (i+1) != 0: ok = False break print("Yes" if ok else "No")