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