N=int(input()) A=list(map(int,input().split())) num=0 for a in A: num=(num+a)%N if num: print("No") else: print("Yes")