N = int(input()) A = [int(a) for a in input().split()] print("Yes" if sum(A) % N == 0 else "No")