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