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