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