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