N = int(input()) A = [int(x) for x in input().split()] m = min(A) cnt = sum([a-m for a in A]) print('No' if cnt%N else 'Yes')