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