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