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