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