n = int(input()) array = [int(x) for x in input().split()] if sum(array) % n == 0: print('Yes') else: print('No')