n = int(input()) A = list(map(int,input().split())) if sum(A)%n: print("No") else: print("Yes")