N = int(input()) A = list(map(int,input().split())) import sys Sum = 0 for i in reversed(range(1,N+1)): Sum += A[i] if A[i] <= i and Sum % i == 0: pass else: print('No') exit() print('Yes')