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