n = int(input()) A = list(map(int, input().split())) sums = sum(A) if (sums/n).is_integer(): print('Yes') else: print('No')