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